From a0d791fd082702d37973fd8c71edc9554f3136f3 Mon Sep 17 00:00:00 2001 From: nyakokitsu <140620899+nyakokitsu@users.noreply.github.com> Date: Sat, 24 Aug 2024 23:54:39 +0300 Subject: [PATCH] Create CI --- .github/workflows/build.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..dfb1826 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,28 @@ +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 }}