setup GitHub Actions

This commit is contained in:
falsycat 2022-02-02 11:12:57 +09:00
parent a18c020652
commit c16ece8a55
1 changed files with 35 additions and 0 deletions

35
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,35 @@
name: build
on:
push:
jobs:
build-on-ubuntu:
strategy:
fail-fast: false
matrix:
mode:
- debug
- release
env:
- ubuntu
- macOS
name: ${{ matrix.mode }} ${{ matrix.env }}
runs-on: ${{ matrix.env }}-latest
steps:
- uses: actions/checkout@v2
- name: setup dlang
uses: dlang-community/setup-dlang@v1
with:
compiler: dmd-latest
- name: build
run : dub build --build=${{ matrix.mode }}
- name: upload artifacts
uses: actions/upload-artifact@v2
with:
name: sj-${{ matrix.env }}-${{ matrix.mode }}
path: .build/