Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,38 @@ jobs:
path: result/bin/try
retention-days: 7

build-macos:
environment: OpenSource
name: Build macOS (${{ matrix.arch }})
if: startsWith(github.ref, 'refs/tags/')
runs-on: macos-latest
strategy:
matrix:
include:
- arch: x86_64
cc: clang -arch x86_64
- arch: aarch64
cc: clang

steps:
- name: Checkout code
uses: actions/checkout@v5

- name: Build
run: make CC="${{ matrix.cc }}"

- name: Upload build artifact
uses: actions/upload-artifact@v5
with:
name: try-darwin-${{ matrix.arch }}
path: dist/try
retention-days: 7

release:
environment: OpenSource
name: Create Release
if: startsWith(github.ref, 'refs/tags/')
needs: cross-compile
needs: [cross-compile, build-macos]
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down