Skip to content

Commit 590edb1

Browse files
authored
update ci.yml to test Nim 2.2; also test gcc-14 (#31)
1 parent 2de3844 commit 590edb1

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
target:
1919
- os: linux
2020
cpu: amd64
21+
- os: linux-gcc-14 # This is to use ubuntu 24 and install gcc 14. Should be removed when ubuntu-latest is 26.04
22+
cpu: amd64
2123
- os: linux
2224
cpu: i386
2325
- os: macos
@@ -26,12 +28,16 @@ jobs:
2628
cpu: arm64
2729
- os: windows
2830
cpu: amd64
29-
branch: [version-1-6, version-2-0, devel]
31+
branch: [version-2-0, version-2-2, devel]
3032
include:
3133
- target:
3234
os: linux
3335
builder: ubuntu-latest
3436
shell: bash
37+
- target:
38+
os: linux-gcc-14 # This is to use ubuntu 24 and install gcc 14. Should be removed when ubuntu-latest is 26.04
39+
builder: ubuntu-24.04
40+
shell: bash
3541
- target:
3642
os: macos
3743
cpu: amd64
@@ -175,6 +181,15 @@ jobs:
175181
fi
176182
cp libsnappy.a ../../
177183
184+
- name: Use gcc 14
185+
# Should be removed when ubuntu-latest is 26.04
186+
if : ${{ matrix.target.os == 'linux-gcc-14' }}
187+
run: |
188+
# Add GCC-14 to alternatives
189+
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-14 14
190+
# Set GCC-14 as the default
191+
sudo update-alternatives --set gcc /usr/bin/gcc-14
192+
178193
- name: Run tests
179194
run: |
180195
if [[ "${{ matrix.target.os }}" == "windows" ]]; then
@@ -183,6 +198,7 @@ jobs:
183198
fi
184199
nim --version
185200
nimble --version
201+
gcc --version
186202
nimble install -y --depsOnly
187203
env NIMLANG=c nimble test
188204
env NIMLANG=cpp nimble test

0 commit comments

Comments
 (0)