Build #371
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: Build | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
schedule: | |
- cron: "0 0 10 * 6" | |
jobs: | |
macos: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install Crystal | |
env: | |
HOMEBREW_NO_INSTALL_UPGRADE: 1 | |
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1 | |
run: brew update && brew install openssl crystal | |
- name: Build the binary | |
env: | |
LLVM_CONFIG: /usr/local/opt/llvm@15/bin/llvm-config | |
run: shards build crystalline --release --no-debug -Dpreview_mt --stats --progress --ignore-crystal-version | |
- name: Upload a Build Artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: crystalline_x86_64-apple-darwin | |
path: ./bin/crystalline | |
linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Build the static binary | |
run: docker build -t crystalline . | |
- name: Copy binary to host | |
run: | | |
docker run -v $PWD:/app/host --rm crystalline:latest cp ./bin/crystalline ./host/crystalline | |
- name: Upload a Build Artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: crystalline_x86_64-unknown-linux-musl | |
path: ./crystalline |