Skip to content

Commit

Permalink
Refactored out reusable workflows
Browse files Browse the repository at this point in the history
from ci.yml, to refernce them later there and in release.yml
  • Loading branch information
kuniss committed Jan 3, 2024
1 parent 50d8851 commit 2f39e92
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
24 changes: 24 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -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 [email protected]
- name: Check style
run: |
dub run dscanner -- --styleCheck src test
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2f39e92

Please sign in to comment.