Skip to content

Commit

Permalink
Added a release worflow
Browse files Browse the repository at this point in the history
which adds binaries to a published GitHub release.
  • Loading branch information
kuniss committed Dec 27, 2023
1 parent acde0f7 commit 6084930
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Release
on:
release:
types: [published]

jobs:

test:
name: Test Gamma
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]

runs-on: ${{ matrix.os }}
steps:
- name: Checkout source codet
uses: actions/checkout@v3

- name: Install D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: dmd-latest

- name: Run tests
run: |
dub test --config=example
build:
name: Build Gamma
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
include:
- os: windows-latest
exe: "gamma.exe"
- os: ubuntu-latest
exe: "./gamma"
- os: macOS-latest
exe: "./gamma"

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-latest

- name: Run build
run: |
dub build
- name: Upload release binaries
uses: AButler/upload-release-assets@v3.0
with:
files: ${{ matrix.exe }}
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6084930

Please sign in to comment.