forked from epics-modules/mrfioc2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request epics-modules#52 from ralphlange/devel/gh-actions
Add support for GitHub Actions
- Loading branch information
Showing
9 changed files
with
571 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
name: ci-scripts build/test | ||
|
||
on: | ||
push: | ||
branches: [ devel/gh-actions ] | ||
|
||
env: | ||
SETUP_PATH: .:.ci | ||
SET: test01 | ||
VV: 1 | ||
BASE_RECURSIVE: NO | ||
CMP: gcc | ||
APT: re2c | ||
CHOCO: re2c | ||
BREW: re2c | ||
|
||
jobs: | ||
unit-test: | ||
name: Unit tests on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-20.04, ubuntu-18.04, ubuntu-16.04, windows-2019, windows-2016, macos-10.15] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Show initial environment | ||
run: python cue-test.py env | ||
- name: Run unit tests | ||
run: python cue-test.py | ||
|
||
build-linux: | ||
name: ${{ matrix.cmp }} / ${{ matrix.configuration }} / ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
CMP: ${{ matrix.cmp }} | ||
BCFG: ${{ matrix.configuration }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-20.04, ubuntu-18.04, ubuntu-16.04] | ||
cmp: [gcc, clang] | ||
configuration: [default, static, debug, static-debug] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Prepare and compile dependencies | ||
run: python cue.py prepare | ||
- name: Build main module (example app) | ||
run: python cue.py build | ||
- name: Run main module tests | ||
run: python cue.py test | ||
- name: Collect and show test results | ||
run: python cue.py test-results | ||
|
||
build-macos: | ||
name: ${{ matrix.cmp }} / ${{ matrix.configuration }} / ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
CMP: ${{ matrix.cmp }} | ||
BCFG: ${{ matrix.configuration }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-10.15] | ||
cmp: [clang] | ||
configuration: [default, debug] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Prepare and compile dependencies | ||
run: python cue.py prepare | ||
- name: Build main module (example app) | ||
run: python cue.py build | ||
- name: Run main module tests | ||
run: python cue.py test | ||
- name: Collect and show test results | ||
run: python cue.py test-results | ||
|
||
build-windows: | ||
name: ${{ matrix.cmp }} / ${{ matrix.configuration }} / ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
CMP: ${{ matrix.cmp }} | ||
BCFG: ${{ matrix.configuration }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [windows-2019, windows-2016] | ||
cmp: [gcc, vs2019, vs2017] | ||
configuration: [default, static, debug, static-debug] | ||
exclude: | ||
- os: windows-2019 | ||
cmp: vs2017 | ||
- os: windows-2016 | ||
cmp: vs2019 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Prepare and compile dependencies | ||
run: python cue.py prepare | ||
- name: Build main module (example app) | ||
run: python cue.py build | ||
- name: Run main module tests | ||
run: python cue.py test | ||
- name: Collect and show test results | ||
run: python cue.py test-results | ||
|
||
build-rtems: | ||
name: RTEMS${{ matrix.rtems }} / ${{ matrix.configuration }} / ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
CMP: ${{ matrix.cmp }} | ||
BCFG: ${{ matrix.configuration }} | ||
RTEMS: ${{ matrix.rtems }} | ||
APT: re2c g++-mingw-w64-i686 g++-mingw-w64-x86-64 qemu-system-x86 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-18.04] | ||
cmp: [gcc] | ||
configuration: [default, static, debug, static-debug] | ||
rtems: ["4.9", "4.10"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Prepare and compile dependencies | ||
run: python cue.py prepare | ||
- name: Build main module (example app) | ||
run: python cue.py build | ||
- name: Run main module tests | ||
run: python cue.py test | ||
- name: Collect and show test results | ||
run: python cue.py test-results | ||
|
||
build-wine: | ||
name: WINE${{ matrix.wine }} / ${{ matrix.configuration }} / ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
CMP: ${{ matrix.cmp }} | ||
BCFG: ${{ matrix.configuration }} | ||
WINE: ${{ matrix.wine }} | ||
APT: re2c g++-mingw-w64-i686 g++-mingw-w64-x86-64 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-18.04] | ||
cmp: [gcc] | ||
configuration: [default, static, debug, static-debug] | ||
wine: [32, 64] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Prepare and compile dependencies | ||
run: python cue.py prepare | ||
- name: Build main module (example app) | ||
run: python cue.py build | ||
- name: Run main module tests | ||
run: python cue.py test | ||
- name: Collect and show test results | ||
run: python cue.py test-results |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.