Auto release #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Artifacts | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build for {{ fromJSON(matrix.build).os }} | |
runs-on: ${{fromJSON(matrix.build).os}} | |
strategy: | |
matrix: | |
build: [ '{"os": "windows-latest", "exe": "dage-windows-amd64.exe"}', '{"os": "ubuntu-latest", "exe": "dage-linux-amd64"}', '{"os": "macos-latest", "exe": "dage-darwin-amd64"}' ] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: dart-lang/[email protected] | |
- name: Install dependencies | |
run: dart pub get | |
- name: Compile | |
run: dart compile exe bin/dage.dart -o bin/${{fromJSON(matrix.build).exe}} | |
- name: Upload artifact for {{ fromJSON(matrix.build).os }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{fromJSON(matrix.build).exe}} | |
path: bin/${{fromJSON(matrix.build).exe}} | |
check: | |
name: Mark artifacts uploaded | |
needs: [ build ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: LouisBrunner/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
name: Artifacts uploaded | |
conclusion: success |