Skip to content

Commit

Permalink
ci: build binaries and upload them
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jan 22, 2022
1 parent 112206e commit 0a73f37
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0a73f37

Please sign in to comment.