From 0427aaebcdc46100e02c57aa8ab7260ac5ed093a Mon Sep 17 00:00:00 2001 From: Alvinosh Date: Sat, 6 Apr 2024 17:45:40 +0200 Subject: [PATCH] added macos workflows --- .github/workflows/build.yml | 32 ++++++++++++++++++++++++++++++ .github/workflows/release.yml | 37 +++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 224a6c2..f0a6e39 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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/ diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1c7a83a..04559c9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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/setup-node@v3.2.0 + 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 }}