diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a912eb8..7c76cf3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,11 +1,15 @@ name: Build Gamma on: - workflow_call + workflow_call: + inputs: + lcd_compiler_version: + type: string + required: true jobs: build: - name: Matrix Build Gamma + name: Build Gamma strategy: matrix: os: [ubuntu-latest, windows-latest, macOS-latest] @@ -18,7 +22,7 @@ jobs: - name: Install D compiler uses: dlang-community/setup-dlang@v1 with: - compiler: ldc-1.33.0 + compiler: ${{ inputs.lcd_compiler_version }} - name: Run build run: | diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index e13968a..d34ab38 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,7 +1,11 @@ -name: Check Gamma project +name: Check Gamma Project on: - workflow_call + workflow_call: + inputs: + dmd_compiler_version: + type: string + required: true jobs: check: @@ -14,7 +18,7 @@ jobs: - name: Install D compiler uses: dlang-community/setup-dlang@v1 with: - compiler: dmd-2.103.1 + compiler: ${{ inputs.dmd_compiler_version }} - run: | dub fetch dscanner@0.14.0 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4368ab5..ba112c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,9 +4,15 @@ on: [push, pull_request] jobs: build: uses: ./.github/workflows/build.yml + with: + lcd_compiler_version: ldc-1.33.0 test: uses: ./.github/workflows/test.yml + with: + dmd_compiler_version: dmd-2.103.1 check: uses: ./.github/workflows/check.yml + with: + dmd_compiler_version: dmd-2.103.1 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index aed5eee..46ef6bc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,11 +1,15 @@ name: Test Gamma on: - workflow_call + workflow_call: + inputs: + dmd_compiler_version: + type: string + required: true jobs: test: - name: Matrix Test Gamma + name: Test Gamma strategy: matrix: os: [ubuntu-latest, windows-latest, macOS-latest] @@ -18,7 +22,7 @@ jobs: - name: Install D compiler uses: dlang-community/setup-dlang@v1 with: - compiler: dmd-2.103.1 + compiler: ${{ inputs.dmd_compiler_version }} - name: Run tests run: |