Skip to content

Commit

Permalink
update tested Nim versions (#5142)
Browse files Browse the repository at this point in the history
Add `version-2-0` testing, and make upstream version testing Linux only.

Co-authored-by: tersec <[email protected]>
  • Loading branch information
etan-status and tersec authored Sep 6, 2023
1 parent f420f09 commit b8db44d
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,26 @@ jobs:
cpu: amd64
- os: windows
cpu: amd64
branch: [~, upstream/version-1-6]
branch: [~, upstream/version-1-6, upstream/version-2-0]
exclude:
- target:
os: macos
branch: upstream/version-1-6
- target:
os: macos
branch: upstream/version-2-0
- target:
os: windows
branch: upstream/version-1-6
- target:
os: windows
branch: upstream/version-2-0
include:
- branch: upstream/version-1-6
branch-short: version-1-6
- branch: upstream/version-2-0
branch-short: version-2-0
nimflags-extra: --mm:refc
- target:
os: linux
builder: ubuntu-22.04
Expand All @@ -52,7 +70,7 @@ jobs:
run:
shell: ${{ matrix.shell }}

name: ${{ matrix.target.os }}-${{ matrix.target.cpu }}${{ matrix.branch != '' && ' (Nim ' || '' }}${{ matrix.branch }}${{ matrix.branch != '' && ')' || '' }}
name: ${{ matrix.target.os }}-${{ matrix.target.cpu }}${{ matrix.branch != '' && ' (Nim ' || '' }}${{ matrix.branch-short }}${{ matrix.branch != '' && ')' || '' }}
runs-on: ${{ matrix.builder }}
steps:
- name: Checkout
Expand Down Expand Up @@ -112,9 +130,11 @@ jobs:
else
export NIMFLAGS="${NIMFLAGS} -d:limitStackUsage"
fi
echo "NIMFLAGS=${NIMFLAGS}" >> $GITHUB_ENV
fi
export NIMFLAGS="${NIMFLAGS} ${{ matrix.nimflags-extra }}"
echo "NIMFLAGS=${NIMFLAGS}" >> $GITHUB_ENV
ncpu=""
make_cmd="make"
case '${{ runner.os }}' in
Expand Down Expand Up @@ -152,7 +172,7 @@ jobs:
- name: Build binaries (with trace logging enabled)
run: |
${make_cmd} -j ${ncpu} V=1 NIM_COMMIT=${{ matrix.branch }} LOG_LEVEL=TRACE NIMFLAGS="-u:release --opt:none"
${make_cmd} -j ${ncpu} V=1 NIM_COMMIT=${{ matrix.branch }} LOG_LEVEL=TRACE NIMFLAGS="-u:release --opt:none ${{ matrix.nimflags-extra }}"
# The Windows image runs out of disk space, so make some room
rm -rf build nimcache
Expand Down

0 comments on commit b8db44d

Please sign in to comment.