From 0a73f371b81df46fa2c88c2d3657d6df646283f2 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Fri, 21 Jan 2022 20:49:56 -0800 Subject: [PATCH] ci: build binaries and upload them --- .github/workflows/ci.yaml | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..4ca484e --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,41 @@ +name: CI + +on: + push: + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: + - windows-latest + - ubuntu-latest + - macos-latest + steps: + - uses: actions/checkout@master + - uses: aminya/setup-scheme@master + with: + implementation: chicken + + - name: Build + run: | + csc -s etc.scm -j etc + csc -s format.scm -j format + csc -static main.scm -o scheme-format + + - name: Zip Binary File + if: "!${{ contains(matrix.os, 'windows') }}" + run: | + zip -9 -j scheme-format-${{ runner.os }}.zip scheme-format + + - name: Zip Binary Windows + if: ${{ contains(matrix.os, 'windows') }} + run: | + zip -9 -j scheme-format-${{ runner.os }}.zip scheme-format.exe + + - name: Upload Artifact + uses: actions/upload-artifact@v2 + with: + path: scheme-format-${{ runner.os }}.zip \ No newline at end of file