diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a912eb8 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +name: Build Gamma + +on: + workflow_call + +jobs: + build: + name: Matrix Build Gamma + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + + runs-on: ${{ matrix.os }} + steps: + - name: Checkout source code + uses: actions/checkout@v3 + + - name: Install D compiler + uses: dlang-community/setup-dlang@v1 + with: + compiler: ldc-1.33.0 + + - name: Run build + run: | + dub build + diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..e13968a --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,24 @@ +name: Check Gamma project + +on: + workflow_call + +jobs: + check: + name: Check Style + runs-on: ubuntu-latest + steps: + - name: Checkout source code + uses: actions/checkout@v3 + + - name: Install D compiler + uses: dlang-community/setup-dlang@v1 + with: + compiler: dmd-2.103.1 + + - run: | + dub fetch dscanner@0.14.0 + + - name: Check style + run: | + dub run dscanner -- --styleCheck src test diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..aed5eee --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,25 @@ +name: Test Gamma + +on: + workflow_call + +jobs: + test: + name: Matrix Test Gamma + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + + runs-on: ${{ matrix.os }} + steps: + - name: Checkout source code + uses: actions/checkout@v3 + + - name: Install D compiler + uses: dlang-community/setup-dlang@v1 + with: + compiler: dmd-2.103.1 + + - name: Run tests + run: | + dub test --config=example