Merge lp:~yrke/verifypn/github-automation into lp:verifypn

Proposed by Kenneth Yrke Jørgensen
Status: Merged
Approved by: Jiri Srba
Approved revision: 241
Merged at revision: 242
Proposed branch: lp:~yrke/verifypn/github-automation
Merge into: lp:verifypn
Diff against target: 158 lines (+142/-0)
3 files modified
.github/workflows/build-linux.yml (+44/-0)
.github/workflows/build-macos.yml (+51/-0)
.github/workflows/build-win.yml (+47/-0)
To merge this branch: bzr merge lp:~yrke/verifypn/github-automation
Reviewer Review Type Date Requested Status
Jiri Srba Approve
Review via email: mp+404125@code.launchpad.net

Description of the change

Adds support for github actions. See commit message.

Until project is moved to github, actions will run when auto-sync is done (daily)
See https://github.com/tapaal/verifypn

To post a comment you must log in.
Revision history for this message
Jiri Srba (srba) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added directory '.github'
=== added directory '.github/workflows'
=== added file '.github/workflows/build-linux.yml'
--- .github/workflows/build-linux.yml 1970-01-01 00:00:00 +0000
+++ .github/workflows/build-linux.yml 2021-06-14 12:43:39 +0000
@@ -0,0 +1,44 @@
1# This is a basic workflow to help you get started with Actions
2
3name: Build Linux
4
5# Controls when the action will run.
6on:
7 # Triggers the workflow on push or pull request events but only for the master branch
8 push:
9 branches: [ marster ]
10 pull_request:
11 branches: [ marster ]
12
13 # Allows you to run this workflow manually from the Actions tab
14 workflow_dispatch:
15
16# A workflow run is made up of one or more jobs that can run sequentially or in parallel
17jobs:
18 # This workflow contains a single job called "build"
19 build:
20 # The type of runner that the job will run on
21 runs-on: ubuntu-latest
22
23 # Steps represent a sequence of tasks that will be executed as part of the job
24 steps:
25 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
26 - uses: actions/checkout@v2
27
28 # Runs a single command using the runners shell
29 - name: Install Packages
30 run: sudo apt install build-essential cmake flex bison git
31
32 - name: Build
33 uses: lukka/run-cmake@v2.5
34 with:
35 cmakeListsOrSettingsJson: CMakeListsTxtBasic
36 cmakeAppendedArgs: '-DVERIFYPN_Static=ON -DVERIFYPN_MC_Simplification=OFF'
37 cmakeBuildType: Release
38 cmakeGenerator: UnixMakefiles
39 buildDirectory: '${{runner.workspace}}/build'
40 - name: Upload artifacts
41 uses: actions/upload-artifact@v2
42 with:
43 name: verifydtapn-linux64
44 path: '${{runner.workspace}}/build/bin/verifypn-linux64'
045
=== added file '.github/workflows/build-macos.yml'
--- .github/workflows/build-macos.yml 1970-01-01 00:00:00 +0000
+++ .github/workflows/build-macos.yml 2021-06-14 12:43:39 +0000
@@ -0,0 +1,51 @@
1name: Build MacOS
2
3# Controls when the action will run.
4on:
5 # Triggers the workflow on push or pull request events but only for the master branch
6 push:
7 branches: [ marster ]
8 pull_request:
9 branches: [ marster ]
10
11 # Allows you to run this workflow manually from the Actions tab
12 workflow_dispatch:
13
14# A workflow run is made up of one or more jobs that can run sequentially or in parallel
15jobs:
16 # This workflow contains a single job called "build"
17 build:
18 # The type of runner that the job will run on
19 runs-on: macos-latest
20
21 # Steps represent a sequence of tasks that will be executed as part of the job
22 steps:
23 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
24 - uses: actions/checkout@v2
25
26 # Runs a single command using the runners shell
27 - name: Install Packages
28 run: |
29 brew install flex bison #gcc-9 git cmake
30
31 - name: Build
32 uses: lukka/run-cmake@v2.5
33 with:
34 cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
35 cmakeAppendedArgs: >-
36 -DVERIFYPN_Static=ON
37 -DVERIFYPN_MC_Simplification=OFF
38 -DBISON_EXECUTABLE=/usr/local/opt/bison/bin/bison
39 -DFLEX_EXECUTABLE=/usr/local/opt/flex/bin/flex
40 cmakeBuildType: Release
41 cmakeGenerator: UnixMakefiles
42 buildDirectory: '${{runner.workspace}}/build'
43 env:
44 CC: gcc-9
45 CXX: g++-9
46
47 - name: Upload artifacts
48 uses: actions/upload-artifact@v2
49 with:
50 name: verifydtapn-osx64
51 path: '${{runner.workspace}}/build/bin/verifypn-osx64'
052
=== added file '.github/workflows/build-win.yml'
--- .github/workflows/build-win.yml 1970-01-01 00:00:00 +0000
+++ .github/workflows/build-win.yml 2021-06-14 12:43:39 +0000
@@ -0,0 +1,47 @@
1name: Build Windows (Cross)
2
3# Controls when the action will run.
4on:
5 # Triggers the workflow on push or pull request events but only for the master branch
6 push:
7 branches: [ marster ]
8 pull_request:
9 branches: [ marster ]
10
11 # Allows you to run this workflow manually from the Actions tab
12 workflow_dispatch:
13
14# A workflow run is made up of one or more jobs that can run sequentially or in parallel
15jobs:
16 # This workflow contains a single job called "build"
17 build:
18 # The type of runner that the job will run on
19 runs-on: ubuntu-latest
20
21 # Steps represent a sequence of tasks that will be executed as part of the job
22 steps:
23 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
24 - uses: actions/checkout@v2
25
26 # Runs a single command using the runners shell
27 - name: Install Packages
28 run: |
29 sudo apt-get install build-essential cmake flex bison git make
30 sudo apt-get install mingw-w64-x86-64-dev mingw-w64-tools g++-mingw-w64-x86-64 wine wine-binfmt
31
32 - name: Build
33 uses: lukka/run-cmake@v2.5
34 with:
35 cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
36 cmakeAppendedArgs: >-
37 -DCMAKE_TOOLCHAIN_FILE=${{runner.workspace}}/verifypn/toolchain-x86_64-w64-mingw32.cmake
38 -DVERIFYPN_Static=ON
39 -DVERIFYPN_MC_Simplification=OFF
40 cmakeBuildType: Release
41 cmakeGenerator: UnixMakefiles
42 buildDirectory: '${{runner.workspace}}/build'
43 - name: Upload artifacts
44 uses: actions/upload-artifact@v2
45 with:
46 name: verifytapn-win64.exe
47 path: '${{runner.workspace}}/build/bin/verifypn-win64.exe'

Subscribers

People subscribed via source and target branches