Skip to content

Commit

Permalink
Update GDC to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
WebFreak001 committed Oct 14, 2022
1 parent 2220812 commit 3dd2b5b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ jobs:
{
# Install dmd for the associated tools (dub/rdmd)
version: dmd-latest,
dmd: gdmd
dmd: gdc-12
}
]
host: [
ubuntu-latest,
ubuntu-22.04,
macos-latest,
windows-latest
]
Expand All @@ -50,15 +50,15 @@ jobs:
exclude:
# Restrict GDC to Ubuntu
- compiler:
dmd: gdmd
dmd: gdc-12
host: windows-latest
- compiler:
dmd: gdmd
dmd: gdc-12
host: macos-latest

# Omit dub builds for GDC because dub rejects the old fronted revision
- compiler:
dmd: gdmd
dmd: gdc-12
build:
type: dub

Expand All @@ -75,17 +75,17 @@ jobs:
# Install the host compiler (DMD or LDC)
# Also grabs DMD for GDC to include dub + rdmd
- name: Install ${{ matrix.compiler.version }}
if: ${{ matrix.compiler.dmd != 'gdmd' || matrix.build.type == 'dub' }} # Fetch required tools for GDC
if: ${{ matrix.compiler.dmd != 'gdc-12' || matrix.build.type == 'dub' }} # Fetch required tools for GDC
uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.compiler.version }}

# GDC not yet supported by setup-dlang
- name: Install GDC via apt-get
if: ${{ matrix.compiler.dmd == 'gdmd' }}
if: ${{ matrix.compiler.dmd == 'gdc-12' }}
run: |
sudo apt-get install gdc gdmd -y
gdc --version
sudo apt-get install gdc-12 -y
gdc-12 --version
# Compile D-Scanner and execute all tests without dub
- name: Build and test without dub
Expand Down
4 changes: 3 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ GDC_DEBUG_VERSIONS = -fversion=dparse_verbose
DC_FLAGS += -Jbin
override DMD_FLAGS += $(DFLAGS) -w -release -O -od${OBJ_DIR}
override LDC_FLAGS += $(DFLAGS) -O5 -release -oq
override GDC_FLAGS += $(DFLAGS) -O3 -frelease
override GDC_FLAGS += $(DFLAGS) -O3 -frelease -fall-instantiations

override GDC_TEST_FLAGS += -fall-instantiations

DC_TEST_FLAGS += -g -Jbin
override DMD_TEST_FLAGS += -w
Expand Down

0 comments on commit 3dd2b5b

Please sign in to comment.