Compare commits
10 Commits
v3.3.0
...
v3.3.0-10-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8a2666a9de | ||
|
|
89a16e4499 | ||
|
|
f7e21c7c9d | ||
|
|
e065445f76 | ||
|
|
93062ba941 | ||
|
|
75d2911498 | ||
|
|
3a1d04914f | ||
|
|
75bae77c1d | ||
|
|
d675de24e6 | ||
|
|
e703210fad |
@@ -72,19 +72,21 @@ environment:
|
||||
VV: 1
|
||||
|
||||
matrix:
|
||||
- CMP: vs2019
|
||||
- CMP: vs2022
|
||||
SET: test00
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
|
||||
- CMP: gcc
|
||||
- CMP: vs2019
|
||||
- CMP: vs2022
|
||||
VV: 0
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
|
||||
- CMP: vs2019
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
|
||||
- CMP: vs2022
|
||||
BASE: 3.15
|
||||
CLEAN_DEPS: NO
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
|
||||
- CMP: vs2019
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
|
||||
- CMP: vs2022
|
||||
BASE: 3.14
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
|
||||
- CMP: vs2019
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
|
||||
- CMP: vs2017
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
||||
@@ -95,7 +97,6 @@ environment:
|
||||
- CMP: vs2013
|
||||
- CMP: vs2012
|
||||
- CMP: vs2010
|
||||
- CMP: vs2008
|
||||
|
||||
# Platform: architecture
|
||||
platform:
|
||||
@@ -125,8 +126,6 @@ matrix:
|
||||
CMP: vs2012
|
||||
- platform: x64
|
||||
CMP: vs2010
|
||||
- platform: x64
|
||||
CMP: vs2008
|
||||
|
||||
# Run test script for unit tests (SET = test00)
|
||||
for:
|
||||
|
||||
74
.github/workflows/build-and-test.yml
vendored
74
.github/workflows/build-and-test.yml
vendored
@@ -19,7 +19,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-20.04, ubuntu-18.04, ubuntu-16.04, windows-2019, windows-2016, macos-10.15]
|
||||
os: [ubuntu-22.04, ubuntu-20.04, ubuntu-18.04, windows-2022, windows-2019, windows-2016, macos-12, macos-11, macos-10.15]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Show initial environment
|
||||
@@ -36,7 +36,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-20.04, ubuntu-18.04, ubuntu-16.04]
|
||||
os: [ubuntu-22.04, ubuntu-20.04, ubuntu-18.04]
|
||||
cmp: [gcc, clang]
|
||||
configuration: [default, static, debug, static-debug]
|
||||
steps:
|
||||
@@ -50,37 +50,6 @@ jobs:
|
||||
- name: Collect and show test results
|
||||
run: python cue.py test-results
|
||||
|
||||
build-linux-old:
|
||||
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-16.04]
|
||||
cmp: ["gcc-4.8", "gcc-4.9"]
|
||||
configuration: [default, static]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: "apt-get install ${{ matrix.cmp }}"
|
||||
run: |
|
||||
export GCC_NAME="${{ matrix.cmp }}"
|
||||
sudo apt-get update
|
||||
sudo apt-get -y install software-properties-common
|
||||
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
|
||||
sudo apt-get update
|
||||
sudo apt-get -y install g++-${GCC_NAME#gcc-}
|
||||
- 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 -T 15M 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 }}
|
||||
@@ -90,7 +59,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [macos-10.15]
|
||||
os: [macos-12, macos-11, macos-10.15]
|
||||
cmp: [clang]
|
||||
configuration: [default, debug]
|
||||
steps:
|
||||
@@ -113,12 +82,22 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [windows-2019, windows-2016]
|
||||
cmp: [gcc, vs2019, vs2017]
|
||||
os: [windows-2022, windows-2019, windows-2016]
|
||||
cmp: [gcc, vs2022, vs2019, vs2017]
|
||||
configuration: [default, static, debug, static-debug]
|
||||
exclude:
|
||||
- os: windows-2022
|
||||
cmp: vs2019
|
||||
- os: windows-2022
|
||||
cmp: vs2017
|
||||
|
||||
- os: windows-2019
|
||||
cmp: vs2022
|
||||
- os: windows-2019
|
||||
cmp: vs2017
|
||||
|
||||
- os: windows-2016
|
||||
cmp: vs2022
|
||||
- os: windows-2016
|
||||
cmp: vs2019
|
||||
steps:
|
||||
@@ -133,21 +112,26 @@ jobs:
|
||||
run: python cue.py test-results
|
||||
|
||||
build-rtems:
|
||||
name: RTEMS${{ matrix.rtems }} / ${{ matrix.configuration }} / ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
name: RTEMS${{ matrix.rtems }} / ${{ matrix.rtems_target }}
|
||||
runs-on: ubuntu-20.04
|
||||
env:
|
||||
CMP: ${{ matrix.cmp }}
|
||||
BCFG: ${{ matrix.configuration }}
|
||||
CMP: gcc
|
||||
BCFG: default
|
||||
RTEMS: ${{ matrix.rtems }}
|
||||
RTEMS_TARGET: RTEMS-pc686-qemu
|
||||
RTEMS_TARGET: ${{ matrix.rtems_target }}
|
||||
APT: re2c g++-mingw-w64-i686 g++-mingw-w64-x86-64 qemu-system-x86
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-20.04]
|
||||
cmp: [gcc]
|
||||
configuration: [default, debug]
|
||||
rtems: ["4.9", "4.10", "5"]
|
||||
include:
|
||||
- rtems: "4.9"
|
||||
rtems_target: RTEMS-pc386-qemu
|
||||
|
||||
- rtems: "4.10"
|
||||
rtems_target: RTEMS-pc386-qemu
|
||||
|
||||
- rtems: "5"
|
||||
rtems_target: RTEMS-pc686-qemu
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Prepare and compile dependencies
|
||||
|
||||
12
README.md
12
README.md
@@ -50,7 +50,7 @@ levels as the example files.
|
||||
the module can be patched or further configured.
|
||||
|
||||
- Define shared (default) or static builds (for executables and libraries).
|
||||
|
||||
|
||||
- Define optimized (default) or debug builds.
|
||||
|
||||
- Run tests (using the EPICS build system, i.e., `make runtests`
|
||||
@@ -76,7 +76,7 @@ and limitations.
|
||||
- Cross-compile for RTEMS 4.9 and 4.10 (pc386, Base >= 3.15)
|
||||
- Cross-compile for RTEMS 5 (10 BSPs, Base >= 7.0.5.1)
|
||||
- Built dependencies are cached (for faster builds).
|
||||
|
||||
|
||||
See specific
|
||||
**[ci-scripts on Travis-CI README](travis/README.md)**
|
||||
for more details.
|
||||
@@ -85,7 +85,7 @@ for more details.
|
||||
- One parallel runner (all builds are sequential)
|
||||
- Windows Server 2012/2016/2019
|
||||
- Compile using gcc/MinGW or different Visual Studio versions: \
|
||||
2008, 2010, 2012, 2013, 2015, 2017, 2019
|
||||
2010, 2012, 2013, 2015, 2017, 2019, 2022
|
||||
- Compile for Windows 32bit and 64bit
|
||||
- No useful caching available.
|
||||
|
||||
@@ -95,10 +95,10 @@ for more details.
|
||||
|
||||
### [GitHub Actions](https://github.com/)
|
||||
- 20 parallel runners on Linux/Windows (5 runners on MacOS)
|
||||
- Ubuntu 16/18/20, MacOS 10.15, Windows Server 2016/2019
|
||||
- Ubuntu 16/18/20, MacOS 10.15, Windows Server 2016/2019/2022
|
||||
- Compile natively on Linux (gcc, clang)
|
||||
- Compile natively on MacOS (clang)
|
||||
- Compile natively on Windows (gcc/MinGW, Visual Studio 2017 & 2019)
|
||||
- Compile natively on Windows (gcc/MinGW, Visual Studio 2017/2019/2022)
|
||||
- Cross-compile for Windows 32bit and 64bit using MinGW and WINE
|
||||
- Cross-compile for RTEMS 4.9 and 4.10 (pc386, Base >= 3.15)
|
||||
- Cross-compile for RTEMS 5 (10 BSPs, Base >= 7.0.5.1)
|
||||
@@ -112,7 +112,7 @@ for more details.
|
||||
|
||||
- Docker-based runners on Linux (one VM instance per job)
|
||||
- Can use any Docker image from Dockerhub (the examples use
|
||||
`ubuntu:bionic`)
|
||||
`ubuntu:bionic`)
|
||||
- Compile natively using different compilers (gcc, clang)
|
||||
- Cross-compile for Windows 32bit and 64bit using MinGW and WINE
|
||||
- Cross-compile for RTEMS 4.9 and 4.10 (pc386, Base >= 3.15)
|
||||
|
||||
@@ -92,8 +92,8 @@ environment:
|
||||
BASE: 7.0
|
||||
|
||||
matrix:
|
||||
- CMP: vs2019
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
|
||||
- CMP: vs2022
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
|
||||
- CMP: gcc
|
||||
- CMP: vs2019
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
|
||||
@@ -109,7 +109,6 @@ environment:
|
||||
- CMP: vs2013
|
||||
- CMP: vs2012
|
||||
- CMP: vs2010
|
||||
- CMP: vs2008
|
||||
|
||||
# Platform: processor architecture
|
||||
platform:
|
||||
@@ -124,8 +123,6 @@ matrix:
|
||||
CMP: vs2012
|
||||
- platform: x64
|
||||
CMP: vs2010
|
||||
- platform: x64
|
||||
CMP: vs2008
|
||||
# Exclude more jobs to reduce build time
|
||||
# E.g., skip 32-bit for newer compilers
|
||||
#- platform: x86
|
||||
|
||||
@@ -20,7 +20,7 @@ skip_commits:
|
||||
install:
|
||||
- cmd: git submodule update --init --recursive
|
||||
|
||||
image: Visual Studio 2019
|
||||
image: Visual Studio 2022
|
||||
|
||||
# Build Configurations: shared/static, optimized/debug
|
||||
configuration:
|
||||
@@ -34,9 +34,9 @@ environment:
|
||||
SETUP_PATH: .ci-local:.ci
|
||||
|
||||
matrix:
|
||||
- CMP: vs2019
|
||||
- CMP: vs2022
|
||||
BASE: 7.0
|
||||
- CMP: vs2019
|
||||
- CMP: vs2022
|
||||
BASE: 3.15
|
||||
|
||||
# Platform: processor architecture
|
||||
@@ -52,8 +52,6 @@ matrix:
|
||||
CMP: vs2012
|
||||
- platform: x64
|
||||
CMP: vs2010
|
||||
- platform: x64
|
||||
CMP: vs2008
|
||||
|
||||
build_script:
|
||||
- cmd: python .ci/cue.py prepare
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
- One parallel runner (all builds are sequential)
|
||||
- Windows Server 2012/2016/2019
|
||||
- Compile using gcc/MinGW or different Visual Studio versions: \
|
||||
2008, 2010, 2012, 2013, 2015, 2017, 2019
|
||||
2010, 2012, 2013, 2015, 2017, 2019, 2022
|
||||
- Compile for Windows 32bit and 64bit
|
||||
- No useful caching available.
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
List of environment variable settings. Each list element (starting with
|
||||
a dash) is one step on the axis of the build matrix. \
|
||||
Set `CMP` to select the compiler: `gcc` for the native
|
||||
[MinGW](http://mingw-w64.org/) GNU compiler, `vs2008` ...`vs2019`
|
||||
[MinGW](http://mingw-w64.org/) GNU compiler, `vs2010` ...`vs2022`
|
||||
(options listed above) for the Microsoft Visual Studio compilers.
|
||||
|
||||
Your builds will take long. \
|
||||
|
||||
47
centos6-eol.repo
Normal file
47
centos6-eol.repo
Normal file
@@ -0,0 +1,47 @@
|
||||
[C6.10-base]
|
||||
name=CentOS-6.10 - Base
|
||||
baseurl=http://vault.centos.org/6.10/os/$basearch/
|
||||
gpgcheck=1
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
|
||||
enabled=1
|
||||
metadata_expire=never
|
||||
|
||||
[C6.10-updates]
|
||||
name=CentOS-6.10 - Updates
|
||||
baseurl=http://vault.centos.org/6.10/updates/$basearch/
|
||||
gpgcheck=1
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
|
||||
enabled=1
|
||||
metadata_expire=never
|
||||
|
||||
[C6.10-extras]
|
||||
name=CentOS-6.10 - Extras
|
||||
baseurl=http://vault.centos.org/6.10/extras/$basearch/
|
||||
gpgcheck=1
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
|
||||
enabled=1
|
||||
metadata_expire=never
|
||||
|
||||
[C6.10-contrib]
|
||||
name=CentOS-6.10 - Contrib
|
||||
baseurl=http://vault.centos.org/6.10/contrib/$basearch/
|
||||
gpgcheck=1
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
|
||||
enabled=0
|
||||
metadata_expire=never
|
||||
|
||||
[C6.10-centosplus]
|
||||
name=CentOS-6.10 - CentOSPlus
|
||||
baseurl=http://vault.centos.org/6.10/centosplus/$basearch/
|
||||
gpgcheck=1
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
|
||||
enabled=0
|
||||
metadata_expire=never
|
||||
|
||||
[centos-sclo-rh]
|
||||
name=CentOS-6 - SCLo rh
|
||||
baseurl=http://vault.centos.org/6.10/sclo/$basearch/rh/
|
||||
gpgcheck=1
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
|
||||
enabled=1
|
||||
metadata_expire=never
|
||||
@@ -111,7 +111,7 @@ class TestSourceSet(unittest.TestCase):
|
||||
self.assertEqual(cue.setup['FOO'], 'bar', 'Setting of single word does not work')
|
||||
self.assertEqual(cue.setup['FOO2'], 'bar bar2', 'Setting of multiple words does not work')
|
||||
self.assertEqual(cue.setup['FOO3'], 'bar bar2', 'Indented setting of multiple words does not work')
|
||||
self.assertEqual(cue.setup['SNCSEQ'], 'R2-2-8', 'Setup test01 was not included')
|
||||
self.assertEqual(cue.setup['SNCSEQ'], 'R2-2-9', 'Setup test01 was not included')
|
||||
|
||||
def test_DoubleIncludeGetsIgnored(self):
|
||||
capturedOutput = getStringIO()
|
||||
@@ -349,8 +349,10 @@ class TestVCVars(unittest.TestCase):
|
||||
os.environ['CONFIGURATION'] = 'default'
|
||||
if ci_service == 'github-actions' and os.environ['IMAGEOS'] == 'win16':
|
||||
os.environ['CMP'] = 'vs2017'
|
||||
else:
|
||||
elif ci_service == 'github-actions' and os.environ['IMAGEOS'] == 'win19':
|
||||
os.environ['CMP'] = 'vs2019'
|
||||
else:
|
||||
os.environ['CMP'] = 'vs2022'
|
||||
cue.detect_context()
|
||||
cue.with_vcvars('env')
|
||||
|
||||
|
||||
5
cue.py
5
cue.py
@@ -266,6 +266,8 @@ toolsdir = os.path.join(homedir, '.tools')
|
||||
|
||||
vcvars_table = {
|
||||
# https://en.wikipedia.org/wiki/Microsoft_Visual_Studio#History
|
||||
'vs2022': [r'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat',
|
||||
r'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat'],
|
||||
'vs2019': [r'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat',
|
||||
r'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat'],
|
||||
'vs2017': [r'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat',
|
||||
@@ -1114,6 +1116,7 @@ def doExec(args):
|
||||
'exec user command with vcvars'
|
||||
setup_for_build(args)
|
||||
os.environ['MAKE'] = 'make'
|
||||
os.environ['EPICS_BASE'] = places['EPICS_BASE']
|
||||
fold_start('exec.command', 'Execute command {}'.format(args.cmd))
|
||||
sp.check_call(' '.join(args.cmd), shell=True)
|
||||
fold_end('exec.command', 'Execute command {}'.format(args.cmd))
|
||||
@@ -1216,6 +1219,8 @@ def main(raw):
|
||||
if 'VV' in os.environ and os.environ['VV'] == '1':
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
silent_dep_builds = False
|
||||
else:
|
||||
logging.basicConfig(level=logging.CRITICAL)
|
||||
|
||||
make_timeout = args.timeout
|
||||
if make_timeout:
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
- Ubuntu 16/18/20, MacOS 10.15, Windows Server 2016/2019
|
||||
- Compile natively on Linux (gcc, clang)
|
||||
- Compile natively on MacOS (clang)
|
||||
- Compile natively on Windows (gcc/MinGW, Visual Studio 2017 & 2019)
|
||||
- Compile natively on Windows (gcc/MinGW, Visual Studio 2017/2019/2022)
|
||||
- Cross-compile for Windows 32bit and 64bit using MinGW and WINE
|
||||
- Cross-compile for RTEMS 4.9 and 4.10 (pc386, Base >= 3.15)
|
||||
- Cross-compile for RTEMS 5 (10 BSPs, Base >= 7.0.5.1)
|
||||
|
||||
@@ -59,10 +59,10 @@ jobs:
|
||||
extra: "CMD_CXXFLAGS=-std=c++11"
|
||||
name: "Ub-20 gcc-9 C++11, static"
|
||||
|
||||
- os: ubuntu-16.04
|
||||
- os: ubuntu-18.04
|
||||
cmp: clang
|
||||
configuration: default
|
||||
name: "Ub-16 clang-9"
|
||||
name: "Ub-18 clang-9"
|
||||
|
||||
- os: ubuntu-20.04
|
||||
cmp: clang
|
||||
@@ -97,18 +97,6 @@ jobs:
|
||||
test: NO
|
||||
name: "Ub-20 gcc-9 + RT-5.1 beatnik"
|
||||
|
||||
- os: ubuntu-16.04
|
||||
cmp: gcc-4.8
|
||||
utoolchain: true
|
||||
configuration: default
|
||||
name: "Ub-16 gcc-4.8"
|
||||
|
||||
- os: ubuntu-16.04
|
||||
cmp: gcc-4.9
|
||||
utoolchain: true
|
||||
configuration: default
|
||||
name: "Ub-16 gcc-4.9"
|
||||
|
||||
- os: ubuntu-18.04
|
||||
cmp: gcc
|
||||
configuration: default
|
||||
@@ -166,6 +154,16 @@ jobs:
|
||||
configuration: static
|
||||
name: "Win2019 MSC-19, static"
|
||||
|
||||
- os: windows-2022
|
||||
cmp: vs2022
|
||||
configuration: default
|
||||
name: "Win2022 MSC-22"
|
||||
|
||||
- os: windows-2022
|
||||
cmp: vs2022
|
||||
configuration: static
|
||||
name: "Win2022 MSC-22, static"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
MODULES="sncseq"
|
||||
|
||||
BASE=7.0
|
||||
SNCSEQ=R2-2-8
|
||||
SNCSEQ=R2-2-9
|
||||
|
||||
Reference in New Issue
Block a user