CI: test gdc
Signed-off-by: Andrei Horodniceanu <a.horodniceanu@proton.me>
This commit is contained in:
parent
45117876d8
commit
3b1f0abfd8
|
|
@ -30,17 +30,36 @@ jobs:
|
||||||
# old compiler tests
|
# old compiler tests
|
||||||
- { os: ubuntu-22.04, dc: dmd-2.095.1, libdparse-version: min, build: debug, arch: x86_64 }
|
- { os: ubuntu-22.04, dc: dmd-2.095.1, libdparse-version: min, build: debug, arch: x86_64 }
|
||||||
- { os: ubuntu-22.04, dc: ldc-1.25.0, libdparse-version: min, build: debug, arch: x86_64 }
|
- { os: ubuntu-22.04, dc: ldc-1.25.0, libdparse-version: min, build: debug, arch: x86_64 }
|
||||||
|
# gdc
|
||||||
|
- { os: ubuntu-24.04, dc: gdc-14, libdparse-version: min, build: debug, arch: x86_64 }
|
||||||
|
- { os: ubuntu-24.04, dc: gdc-14, libdparse-version: max, build: debug, arch: x86_64 }
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Setup D tools (gdc only)
|
||||||
|
if: ${{ startsWith(matrix.dc, 'gdc') }}
|
||||||
|
uses: dlang-community/setup-dlang@v2
|
||||||
|
|
||||||
- name: Setup D
|
- name: Setup D
|
||||||
uses: dlang-community/setup-dlang@v2
|
uses: dlang-community/setup-dlang@v2
|
||||||
with:
|
with:
|
||||||
compiler: ${{ matrix.dc }}
|
compiler: ${{ matrix.dc }}
|
||||||
|
|
||||||
|
- name: Set gdc specific environment variables
|
||||||
|
if: ${{ startsWith(matrix.dc, 'gdc') }}
|
||||||
|
run: |
|
||||||
|
tee -a ${GITHUB_ENV} <<<"DC=${DMD}" # need gdmd for -run
|
||||||
|
# Linking errors without -allinst
|
||||||
|
# No other easy way to pass this to dub, using DFLAGS in the
|
||||||
|
# environment disables unittests
|
||||||
|
cat <<-EOF | sudo tee -a /etc/dmd.conf
|
||||||
|
[Environment]
|
||||||
|
DFLAGS=-allinst
|
||||||
|
EOF
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|
@ -52,7 +71,6 @@ jobs:
|
||||||
|
|
||||||
- name: Build DSymbol
|
- name: Build DSymbol
|
||||||
env:
|
env:
|
||||||
DC: ${{matrix.dc}}
|
|
||||||
LIBDPARSE_VERSION: ${{ matrix.libdparse-version }}
|
LIBDPARSE_VERSION: ${{ matrix.libdparse-version }}
|
||||||
run: |
|
run: |
|
||||||
cd dsymbol
|
cd dsymbol
|
||||||
|
|
@ -60,7 +78,6 @@ jobs:
|
||||||
|
|
||||||
- name: Test DSymbol
|
- name: Test DSymbol
|
||||||
env:
|
env:
|
||||||
DC: ${{matrix.dc}}
|
|
||||||
LIBDPARSE_VERSION: ${{ matrix.libdparse-version }}
|
LIBDPARSE_VERSION: ${{ matrix.libdparse-version }}
|
||||||
run: |
|
run: |
|
||||||
cd dsymbol
|
cd dsymbol
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue