Skip to content

Commit

Permalink
On release compile tests with LCD for verification.
Browse files Browse the repository at this point in the history
  • Loading branch information
kuniss committed Jan 7, 2024
1 parent 1ac1418 commit 8fe879e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build Gamma
on:
workflow_call:
inputs:
lcd_compiler_version:
compiler_version:
type: string
required: true
build_type:
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Install D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ inputs.lcd_compiler_version }}
compiler: ${{ inputs.compiler_version }}

- name: Run build
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
build:
uses: ./.github/workflows/build.yml
with:
lcd_compiler_version: ldc-1.33.0
compiler_version: ldc-1.33.0

test:
uses: ./.github/workflows/test.yml
with:
dmd_compiler_version: dmd-2.103.1
compiler_version: dmd-2.103.1

check:
uses: ./.github/workflows/check.yml
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ jobs:
verify:
uses: ./.github/workflows/test.yml
with:
dmd_compiler_version: dmd-2.103.1
compiler_version: ldc-1.33.0
build_type: release-gamma

build:
uses: ./.github/workflows/build.yml
with:
lcd_compiler_version: ldc-1.33.0
compiler_version: ldc-1.33.0
build_type: release-gamma
needs: verify

Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ name: Test Gamma
on:
workflow_call:
inputs:
dmd_compiler_version:
compiler_version:
type: string
required: true

build_type:
type: string
required: false
default: "debug"

jobs:
test:
name: Test Gamma
Expand Down Expand Up @@ -34,4 +38,4 @@ jobs:

- name: Run tests
run: |
dub test --config=example
dub test --build=${{inputs.build_type}} --config=example

0 comments on commit 8fe879e

Please sign in to comment.