Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update GitHub workflows (also add GDC builds) #280

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

Expand Down
49 changes: 47 additions & 2 deletions .github/workflows/dub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,20 @@ jobs:
compiler:
- dmd-latest
- ldc-latest
- dmd-2.105.3 # (released in 2023)
- dmd-2.104.2 # (released in 2023)
- dmd-2.103.1 # (released in 2023)
- dmd-2.102.2 # (released in 2023)
- dmd-2.101.2
- dmd-2.098.1

- ldc-1.35.0 # eq to dmd v2.105.2
- ldc-1.34.0 # eq to dmd v2.104.2
- ldc-1.33.0 # eq to dmd v2.103.1
- ldc-1.31.0 # eq to dmd v2.101.2
- ldc-1.28.1 # eq to dmd v2.098.1
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install D ${{ matrix.compiler }}
uses: dlang-community/setup-dlang@v1
Expand Down Expand Up @@ -85,7 +93,7 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install D ${{ matrix.compiler }}
uses: dlang-community/setup-dlang@v1
Expand All @@ -101,3 +109,40 @@ jobs:
# cache
- uses: WebFreak001/[email protected]
with: { store: true }

## On Ubuntu we can use GDC. The compatibility of gdc is:
## gcc gdc-10 -> D 2.076 (the default on Ubuntu 20.04 (ubuntu-latest), also available on 22.04)
## gcc gdc-11 -> D 2.076 (requires Ubuntu 22.04)
## gcc gdc-12 -> D 2.100 (requires Ubuntu 22.04)
## gcc gdc-13 -> D 2.103 (requires Ubuntu 23.04 - no runners yet)
gdc:
name: ${{ matrix.compiler }} on ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-22.04 ]
compiler: [ gdc-10, gdc-11, gdc-12 ]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- name: Install DMD (so dub is available)
uses: dlang-community/setup-dlang@v1
with:
compiler: dmd-latest

- name: Install ${{ matrix.compiler }}
run: |
sudo apt update
sudo apt install ${{ matrix.compiler }} -y

- name: Show version
run: |
${{ matrix.compiler }} --version
dub --version

- name: Build Library (Release)
env:
DC: ${{ matrix.compiler }}
run: dub build --compiler=${{ matrix.compiler }} --build=release
6 changes: 3 additions & 3 deletions .github/workflows/integration-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
# --health-retries 4

# steps:
# - uses: actions/checkout@v2
# - uses: actions/checkout@v4

# - name: Install ${{ matrix.compiler }}
# uses: dlang-community/setup-dlang@v1
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
--health-retries 4

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install ${{ matrix.compiler }}
uses: dlang-community/setup-dlang@v1
Expand Down Expand Up @@ -185,7 +185,7 @@ jobs:
--health-retries 4

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install ${{ matrix.compiler }}
uses: dlang-community/setup-dlang@v1
Expand Down
Loading