Skip to content

Commit

Permalink
added macos workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
alvinosh committed Apr 6, 2024
1 parent b320480 commit 0427aae
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,35 @@ jobs:
with:
name: ark-gallery-Windows.zip
path: ./src-tauri/target/release/bundle/
build-macos:
runs-on: macos-latest

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

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'

- name: Install dependencies
run: brew install pkg-config openssl webkit2gtk gtk+3

- name: Fetch Node.js Dependencies
run: yarn

- name: Build Release version
run: yarn tauri build

- name: Upload App
uses: actions/upload-artifact@v4
with:
name: ark-gallery-macOS.zip
path: ./src-tauri/target/release/bundle/
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,40 @@ jobs:
with:
artifacts: './target/release/bundle/*.exe'
token: ${{ secrets.GITHUB_TOKEN }}
release-macos:
runs-on: macos-latest
environment: Development
steps:
- uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
components: rustfmt, clippy

- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: '16.x'

- name: Install dependencies (adjust as needed)
run: brew install pkg-config openssl webkit2gtk gtk+3

- name: Fetch Node.js dependencies
run: yarn

- name: Build Release version
run: yarn tauri build

- name: Create Release Archive (adjust filename/compression if needed)
run: |
cd src-tauri/target/release/bundle
zip -r ark-gallery-macOS.zip .
- name: Release macOS App
uses: ncipollo/release-action@v1
with:
artifacts: './ark-gallery-macOS.zip'
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0427aae

Please sign in to comment.