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
1=== added directory '.github'
2=== added directory '.github/workflows'
3=== added file '.github/workflows/build-linux.yml'
4--- .github/workflows/build-linux.yml 1970-01-01 00:00:00 +0000
5+++ .github/workflows/build-linux.yml 2021-06-14 12:43:39 +0000
6@@ -0,0 +1,44 @@
7+# This is a basic workflow to help you get started with Actions
8+
9+name: Build Linux
10+
11+# Controls when the action will run.
12+on:
13+ # Triggers the workflow on push or pull request events but only for the master branch
14+ push:
15+ branches: [ marster ]
16+ pull_request:
17+ branches: [ marster ]
18+
19+ # Allows you to run this workflow manually from the Actions tab
20+ workflow_dispatch:
21+
22+# A workflow run is made up of one or more jobs that can run sequentially or in parallel
23+jobs:
24+ # This workflow contains a single job called "build"
25+ build:
26+ # The type of runner that the job will run on
27+ runs-on: ubuntu-latest
28+
29+ # Steps represent a sequence of tasks that will be executed as part of the job
30+ steps:
31+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
32+ - uses: actions/checkout@v2
33+
34+ # Runs a single command using the runners shell
35+ - name: Install Packages
36+ run: sudo apt install build-essential cmake flex bison git
37+
38+ - name: Build
39+ uses: lukka/run-cmake@v2.5
40+ with:
41+ cmakeListsOrSettingsJson: CMakeListsTxtBasic
42+ cmakeAppendedArgs: '-DVERIFYPN_Static=ON -DVERIFYPN_MC_Simplification=OFF'
43+ cmakeBuildType: Release
44+ cmakeGenerator: UnixMakefiles
45+ buildDirectory: '${{runner.workspace}}/build'
46+ - name: Upload artifacts
47+ uses: actions/upload-artifact@v2
48+ with:
49+ name: verifydtapn-linux64
50+ path: '${{runner.workspace}}/build/bin/verifypn-linux64'
51
52=== added file '.github/workflows/build-macos.yml'
53--- .github/workflows/build-macos.yml 1970-01-01 00:00:00 +0000
54+++ .github/workflows/build-macos.yml 2021-06-14 12:43:39 +0000
55@@ -0,0 +1,51 @@
56+name: Build MacOS
57+
58+# Controls when the action will run.
59+on:
60+ # Triggers the workflow on push or pull request events but only for the master branch
61+ push:
62+ branches: [ marster ]
63+ pull_request:
64+ branches: [ marster ]
65+
66+ # Allows you to run this workflow manually from the Actions tab
67+ workflow_dispatch:
68+
69+# A workflow run is made up of one or more jobs that can run sequentially or in parallel
70+jobs:
71+ # This workflow contains a single job called "build"
72+ build:
73+ # The type of runner that the job will run on
74+ runs-on: macos-latest
75+
76+ # Steps represent a sequence of tasks that will be executed as part of the job
77+ steps:
78+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
79+ - uses: actions/checkout@v2
80+
81+ # Runs a single command using the runners shell
82+ - name: Install Packages
83+ run: |
84+ brew install flex bison #gcc-9 git cmake
85+
86+ - name: Build
87+ uses: lukka/run-cmake@v2.5
88+ with:
89+ cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
90+ cmakeAppendedArgs: >-
91+ -DVERIFYPN_Static=ON
92+ -DVERIFYPN_MC_Simplification=OFF
93+ -DBISON_EXECUTABLE=/usr/local/opt/bison/bin/bison
94+ -DFLEX_EXECUTABLE=/usr/local/opt/flex/bin/flex
95+ cmakeBuildType: Release
96+ cmakeGenerator: UnixMakefiles
97+ buildDirectory: '${{runner.workspace}}/build'
98+ env:
99+ CC: gcc-9
100+ CXX: g++-9
101+
102+ - name: Upload artifacts
103+ uses: actions/upload-artifact@v2
104+ with:
105+ name: verifydtapn-osx64
106+ path: '${{runner.workspace}}/build/bin/verifypn-osx64'
107
108=== added file '.github/workflows/build-win.yml'
109--- .github/workflows/build-win.yml 1970-01-01 00:00:00 +0000
110+++ .github/workflows/build-win.yml 2021-06-14 12:43:39 +0000
111@@ -0,0 +1,47 @@
112+name: Build Windows (Cross)
113+
114+# Controls when the action will run.
115+on:
116+ # Triggers the workflow on push or pull request events but only for the master branch
117+ push:
118+ branches: [ marster ]
119+ pull_request:
120+ branches: [ marster ]
121+
122+ # Allows you to run this workflow manually from the Actions tab
123+ workflow_dispatch:
124+
125+# A workflow run is made up of one or more jobs that can run sequentially or in parallel
126+jobs:
127+ # This workflow contains a single job called "build"
128+ build:
129+ # The type of runner that the job will run on
130+ runs-on: ubuntu-latest
131+
132+ # Steps represent a sequence of tasks that will be executed as part of the job
133+ steps:
134+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
135+ - uses: actions/checkout@v2
136+
137+ # Runs a single command using the runners shell
138+ - name: Install Packages
139+ run: |
140+ sudo apt-get install build-essential cmake flex bison git make
141+ sudo apt-get install mingw-w64-x86-64-dev mingw-w64-tools g++-mingw-w64-x86-64 wine wine-binfmt
142+
143+ - name: Build
144+ uses: lukka/run-cmake@v2.5
145+ with:
146+ cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
147+ cmakeAppendedArgs: >-
148+ -DCMAKE_TOOLCHAIN_FILE=${{runner.workspace}}/verifypn/toolchain-x86_64-w64-mingw32.cmake
149+ -DVERIFYPN_Static=ON
150+ -DVERIFYPN_MC_Simplification=OFF
151+ cmakeBuildType: Release
152+ cmakeGenerator: UnixMakefiles
153+ buildDirectory: '${{runner.workspace}}/build'
154+ - name: Upload artifacts
155+ uses: actions/upload-artifact@v2
156+ with:
157+ name: verifytapn-win64.exe
158+ path: '${{runner.workspace}}/build/bin/verifypn-win64.exe'

Subscribers

People subscribed via source and target branches