Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
87942a7c29 | ||
|
|
0bf7d23a6f | ||
|
|
b592ab053c |
@@ -365,16 +365,16 @@ This will make all builds (not just for your module) verbose.
|
|||||||
|
|
||||||
Update the submodule in `.ci` first, then change your CI configuration
|
Update the submodule in `.ci` first, then change your CI configuration
|
||||||
(if needed) and commit both to your module. E.g., to update your Travis
|
(if needed) and commit both to your module. E.g., to update your Travis
|
||||||
setup to release 3.1.0 of ci-scripts:
|
setup to release 3.1.1 of ci-scripts:
|
||||||
```bash
|
```bash
|
||||||
cd .ci
|
cd .ci
|
||||||
git pull origin v3.1.0
|
git pull origin v3.1.1
|
||||||
cd -
|
cd -
|
||||||
git add .ci
|
git add .ci
|
||||||
# if needed:
|
# if needed:
|
||||||
edit .travis.yml # and/or AppVeyor/GitHub Actions configuration
|
edit .travis.yml # and/or AppVeyor/GitHub Actions configuration
|
||||||
git add .travis.yml
|
git add .travis.yml
|
||||||
git commit -m "Update ci-scripts submodule to v3.1.0"
|
git commit -m "Update ci-scripts submodule to v3.1.1"
|
||||||
```
|
```
|
||||||
|
|
||||||
Check the example configuration files inside ci-scripts (and their
|
Check the example configuration files inside ci-scripts (and their
|
||||||
|
|||||||
@@ -48,6 +48,18 @@
|
|||||||
5. Push your changes and click on the `Actions` tab of your GitHub repository
|
5. Push your changes and click on the `Actions` tab of your GitHub repository
|
||||||
page to see your build results.
|
page to see your build results.
|
||||||
|
|
||||||
|
## Specifics
|
||||||
|
|
||||||
|
#### Quote Environment Variable Values
|
||||||
|
|
||||||
|
Variable settings distinguish between numerical and string values.
|
||||||
|
Better quote all branch and tag names. E.g.,
|
||||||
|
```yaml
|
||||||
|
env:
|
||||||
|
BASE: "7.0"
|
||||||
|
```
|
||||||
|
to avoid ci-scripts trying to `git clone` with `--branch 7`.
|
||||||
|
|
||||||
## Caches
|
## Caches
|
||||||
|
|
||||||
GitHub Actions provides caching of dependencies.
|
GitHub Actions provides caching of dependencies.
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ on: [push, pull_request]
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
SETUP_PATH: .ci-local:.ci
|
SETUP_PATH: .ci-local:.ci
|
||||||
SET: test01
|
|
||||||
CMP: gcc
|
CMP: gcc
|
||||||
# For the sequencer on Linux/Windows/MacOS
|
# For the sequencer on Linux/Windows/MacOS
|
||||||
APT: re2c
|
APT: re2c
|
||||||
@@ -35,14 +34,16 @@ jobs:
|
|||||||
configuration: [default, static, debug, static-debug]
|
configuration: [default, static, debug, static-debug]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
- name: Prepare and compile dependencies
|
- name: Prepare and compile dependencies
|
||||||
run: python cue.py prepare
|
run: python .ci/cue.py prepare
|
||||||
- name: Build main module
|
- name: Build main module
|
||||||
run: python cue.py build
|
run: python .ci/cue.py build
|
||||||
- name: Run main module tests
|
- name: Run main module tests
|
||||||
run: python cue.py test
|
run: python .ci/cue.py test
|
||||||
- name: Collect and show test results
|
- name: Collect and show test results
|
||||||
run: python cue.py test-results
|
run: python .ci/cue.py test-results
|
||||||
|
|
||||||
build-macos:
|
build-macos:
|
||||||
name: ${{ matrix.cmp }} / ${{ matrix.configuration }} / ${{ matrix.os }}
|
name: ${{ matrix.cmp }} / ${{ matrix.configuration }} / ${{ matrix.os }}
|
||||||
@@ -61,13 +62,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Prepare and compile dependencies
|
- name: Prepare and compile dependencies
|
||||||
run: python cue.py prepare
|
run: python .ci/cue.py prepare
|
||||||
- name: Build main module
|
- name: Build main module
|
||||||
run: python cue.py build
|
run: python .ci/cue.py build
|
||||||
- name: Run main module tests
|
- name: Run main module tests
|
||||||
run: python cue.py test
|
run: python .ci/cue.py test
|
||||||
- name: Collect and show test results
|
- name: Collect and show test results
|
||||||
run: python cue.py test-results
|
run: python .ci/cue.py test-results
|
||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
name: ${{ matrix.cmp }} / ${{ matrix.configuration }} / ${{ matrix.os }}
|
name: ${{ matrix.cmp }} / ${{ matrix.configuration }} / ${{ matrix.os }}
|
||||||
@@ -89,14 +90,16 @@ jobs:
|
|||||||
cmp: vs2019
|
cmp: vs2019
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
- name: Prepare and compile dependencies
|
- name: Prepare and compile dependencies
|
||||||
run: python cue.py prepare
|
run: python .ci/cue.py prepare
|
||||||
- name: Build main module
|
- name: Build main module
|
||||||
run: python cue.py build
|
run: python .ci/cue.py build
|
||||||
- name: Run main module tests
|
- name: Run main module tests
|
||||||
run: python cue.py test
|
run: python .ci/cue.py test
|
||||||
- name: Collect and show test results
|
- name: Collect and show test results
|
||||||
run: python cue.py test-results
|
run: python .ci/cue.py test-results
|
||||||
|
|
||||||
# Same setup and toolchain as on Travis.
|
# Same setup and toolchain as on Travis.
|
||||||
# Needs Base >= 3.15 to compile, EPICS 7 to also run the tests on qemu
|
# Needs Base >= 3.15 to compile, EPICS 7 to also run the tests on qemu
|
||||||
@@ -113,18 +116,20 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-18.04]
|
os: [ubuntu-18.04]
|
||||||
cmp: [gcc]
|
cmp: [gcc]
|
||||||
configuration: [default, static, debug, static-debug]
|
configuration: [default]
|
||||||
rtems: ["4.9", "4.10"]
|
rtems: ["4.9", "4.10"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
- name: Prepare and compile dependencies
|
- name: Prepare and compile dependencies
|
||||||
run: python cue.py prepare
|
run: python .ci/cue.py prepare
|
||||||
- name: Build main module
|
- name: Build main module
|
||||||
run: python cue.py build
|
run: python .ci/cue.py build
|
||||||
- name: Run main module tests
|
- name: Run main module tests
|
||||||
run: python cue.py test
|
run: python .ci/cue.py test
|
||||||
- name: Collect and show test results
|
- name: Collect and show test results
|
||||||
run: python cue.py test-results
|
run: python .ci/cue.py test-results
|
||||||
|
|
||||||
# The WINE cross builds are of somewhat limited use,
|
# The WINE cross builds are of somewhat limited use,
|
||||||
# as there are native gcc/MinGW builds available on GitHub Actions
|
# as there are native gcc/MinGW builds available on GitHub Actions
|
||||||
@@ -145,11 +150,13 @@ jobs:
|
|||||||
wine: [32, 64]
|
wine: [32, 64]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
- name: Prepare and compile dependencies
|
- name: Prepare and compile dependencies
|
||||||
run: python cue.py prepare
|
run: python .ci/cue.py prepare
|
||||||
- name: Build main module
|
- name: Build main module
|
||||||
run: python cue.py build
|
run: python .ci/cue.py build
|
||||||
- name: Run main module tests
|
- name: Run main module tests
|
||||||
run: python cue.py test
|
run: python .ci/cue.py test
|
||||||
- name: Collect and show test results
|
- name: Collect and show test results
|
||||||
run: python cue.py test-results
|
run: python .ci/cue.py test-results
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ on: [push, pull_request]
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
SETUP_PATH: .ci-local:.ci
|
SETUP_PATH: .ci-local:.ci
|
||||||
SET: test01
|
|
||||||
CMP: gcc
|
CMP: gcc
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -33,11 +32,13 @@ jobs:
|
|||||||
base: ["7.0", "3.15"]
|
base: ["7.0", "3.15"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
- name: Prepare and compile dependencies
|
- name: Prepare and compile dependencies
|
||||||
run: python cue.py prepare
|
run: python .ci/cue.py prepare
|
||||||
- name: Build main module
|
- name: Build main module
|
||||||
run: python cue.py build
|
run: python .ci/cue.py build
|
||||||
- name: Run main module tests
|
- name: Run main module tests
|
||||||
run: python cue.py test
|
run: python .ci/cue.py test
|
||||||
- name: Collect and show test results
|
- name: Collect and show test results
|
||||||
run: python cue.py test-results
|
run: python .ci/cue.py test-results
|
||||||
|
|||||||
Reference in New Issue
Block a user