Merge pull request #5 from libanime/nyakokitsu-patch-2 #1
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
on: | |
push: | |
branches: | |
- stable | |
jobs: | |
compile: | |
name: dart compile exe | |
strategy: | |
matrix: | |
include: | |
- runs-on: ubuntu-latest | |
binary-name: maco_linux_amd64 | |
- runs-on: macos-latest | |
binary-name: maco_macos_amd64 | |
- runs-on: windows-latest | |
binary-name: maco_windows.exe | |
runs-on: ${{ matrix.runs-on }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: dart-lang/setup-dart@v1 | |
- run: dart pub get | |
- run: mkdir ${{ matrix.runs-on }} | |
- run: dart compile exe bin/maco.dart -o ${{ matrix.runs-on }}/${{ matrix.binary-name }} | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: bin-${{ matrix.runs-on }} | |
path: ${{ matrix.runs-on }} |