Skip to content

Build-Macos

Build-Macos #3

Workflow file for this run

# 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/install-nim@v3.2.0
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