Skip to content

Commit e46e458

Browse files
Add macos github actions build steps
1 parent 1fac15f commit e46e458

1 file changed

Lines changed: 25 additions & 8 deletions

File tree

.github/workflows/github-actions-demo.yml

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,33 @@ env:
1212
CARGO_TERM_COLOR: always
1313
jobs:
1414
mac:
15-
build:
16-
permissions:
15+
permissions:
1716
contents: write
18-
runs-on: macos-14
19-
steps:
20-
- uses: actions/checkout@v3
21-
- name: Install Cargo Toolchain
22-
run: rustup install nightly
17+
runs-on: macos-14
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Install Cargo Toolchain
21+
run: rustup install nightly
22+
- name: Install Tauri
23+
run: cargo install tauri-cli --version "^2.0.0" --locked
24+
- name: Build Frontend
25+
run: cd frontend && yarn install --network-timeout 1000000000 && yarn build && cd ..
26+
- name: Build UI
27+
run: cargo tauri build
28+
- name: Zip App Bundle
29+
run: zip -9 -y -r -q Rubic-macos.zip src-tauri/target/release/bundle/macos/Rubic.app
30+
- name: Generate release tag
31+
id: tag
32+
run: |
33+
echo "::set-output name=release_tag::Release_$(date +"%Y.%m.%d_%H-%M")"
34+
- name: Publish Release
35+
uses: softprops/action-gh-release@v1
36+
with:
37+
tag_name: ${{ steps.tag.outputs.release_tag }}
38+
files: |
39+
Rubic-macos.zip
40+
- run: echo "🍏 This job's status is ${{ job.status }}."
2341
windows:
24-
build:
2542
permissions:
2643
contents: write
2744
runs-on: windows-latest

0 commit comments

Comments
 (0)