Skip to content

Commit

Permalink
build universal app
Browse files Browse the repository at this point in the history
  • Loading branch information
AbundantSalmon committed Jan 19, 2025
1 parent eb41fe4 commit 84b4e16
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .changeset/build_universal_app.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
default: patch
---

# build universal app
13 changes: 2 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,6 @@ on:
jobs:
build-artifacts:
if: github.event_name == 'workflow_dispatch' || github.head_ref == 'release' && github.event.pull_request.merged == true
strategy:
fail-fast: false
matrix:
include:
- target: osx-arm64
os: macos-latest
env:
archive_name: artifacts

runs-on: macos-latest

steps:
Expand All @@ -28,7 +19,7 @@ jobs:
dotnet-version: '9.0.x'
- name: Build for Apple Silicon
run: |
dotnet publish -c Release -r osx-arm64 --self-contained -o qc-osx-arm64 -p:AssemblyName=qc-osx-arm64
dotnet publish -c Release -r osx-arm64 --self-contained -o osx-arm64 -p:AssemblyName=qc-osx-arm64
- name: Build for Intel Macs
run: |
dotnet publish -c Release -r osx-x64 --self-contained -o osx-x64 -p:AssemblyName=qc-osx-x64
Expand All @@ -45,7 +36,7 @@ jobs:
- name: Upload Artifact
uses: actions/upload-artifact@v4.3.3
with:
name: qc-universal
name: qc.tar.qz
path: universal
if-no-files-found: error

Expand Down
2 changes: 1 addition & 1 deletion knope.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ changelog = "CHANGELOG.md"
name = "prepare-release"

[[package.assets]]
path = "artifacts/qc-universal"
path = "artifacts/qc.tar.gz"

[[workflows.steps]]
type = "Command"
Expand Down

0 comments on commit 84b4e16

Please sign in to comment.