Build-Macos #3
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
# copied from Daniel Cook's Seq collection | |
name: "Build-Macos" | |
on: | |
workflow_dispatch | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ macos-12 ] | |
nimversion: | |
- 1.6.6 | |
steps: | |
- uses: actions/checkout@v2 | |
# Caching | |
- name: Cache choosenim | |
id: cache-choosenim | |
uses: actions/cache@v1 | |
with: | |
path: ~/.choosenim | |
key: ${{ runner.os }}-choosenim-stable | |
- name: Cache nimble | |
id: cache-nimble | |
uses: actions/cache@v1 | |
with: | |
path: ~/.nimble | |
key: ${{ runner.os }}-nimble-stable | |
- uses: iffy/[email protected] | |
with: | |
version: ${{ matrix.nimversion }} | |
# Build and Test | |
- name: Build macOS executable | |
run: | | |
nimble build -y --verbose | |
ls -l bin/ | |
bin/qax --version | |
bash test/all.sh | |
mv bin/qax bin/qax-macos | |
- name: Upload binary artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: qax-macos | |
path: /Users/runner/work/qax/qax/bin/qax-macos |