update tested Nim versions (#5142)
Add `version-2-0` testing, and make upstream version testing Linux only. Co-authored-by: tersec <tersec@users.noreply.github.com>
This commit is contained in:
parent
f420f09ac1
commit
b8db44d761
|
@ -33,8 +33,26 @@ jobs:
|
||||||
cpu: amd64
|
cpu: amd64
|
||||||
- os: windows
|
- os: windows
|
||||||
cpu: amd64
|
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:
|
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:
|
- target:
|
||||||
os: linux
|
os: linux
|
||||||
builder: ubuntu-22.04
|
builder: ubuntu-22.04
|
||||||
|
@ -52,7 +70,7 @@ jobs:
|
||||||
run:
|
run:
|
||||||
shell: ${{ matrix.shell }}
|
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 }}
|
runs-on: ${{ matrix.builder }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
@ -112,9 +130,11 @@ jobs:
|
||||||
else
|
else
|
||||||
export NIMFLAGS="${NIMFLAGS} -d:limitStackUsage"
|
export NIMFLAGS="${NIMFLAGS} -d:limitStackUsage"
|
||||||
fi
|
fi
|
||||||
echo "NIMFLAGS=${NIMFLAGS}" >> $GITHUB_ENV
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export NIMFLAGS="${NIMFLAGS} ${{ matrix.nimflags-extra }}"
|
||||||
|
echo "NIMFLAGS=${NIMFLAGS}" >> $GITHUB_ENV
|
||||||
|
|
||||||
ncpu=""
|
ncpu=""
|
||||||
make_cmd="make"
|
make_cmd="make"
|
||||||
case '${{ runner.os }}' in
|
case '${{ runner.os }}' in
|
||||||
|
@ -152,7 +172,7 @@ jobs:
|
||||||
|
|
||||||
- name: Build binaries (with trace logging enabled)
|
- name: Build binaries (with trace logging enabled)
|
||||||
run: |
|
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
|
# The Windows image runs out of disk space, so make some room
|
||||||
rm -rf build nimcache
|
rm -rf build nimcache
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue