diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4fafae4..26e8ec5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,7 +3,7 @@ name: Build Gamma on: workflow_call: inputs: - lcd_compiler_version: + compiler_version: type: string required: true build_type: @@ -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: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d2306af..08fec7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7961f65..1ff6df6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 75eb9fd..0518f2c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 @@ -34,4 +38,4 @@ jobs: - name: Run tests run: | - dub test --config=example + dub test --build=${{inputs.build_type}} --config=example