Skip to content

File Structure Reorg + Small Fixes #25

File Structure Reorg + Small Fixes

File Structure Reorg + Small Fixes #25

Workflow file for this run

name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
release:
types: [ published ] # has GITHUB_REF as refs/tags/<tag_name>
jobs:
build:
permissions:
contents: write
strategy:
fail-fast: true
matrix:
os:
# - macos-latest
- ubuntu-latest
# - windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup Rust cache
uses: actions/cache@v3
with:
key: ${{ matrix.os }}-${{ hashFiles('src-tauri/Cargo.lock') }}
path: |
~/.cargo
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18.16
cache: yarn
cache-dependency-path: |
yarn.lock
# - name: 🦀 Install Rust
# uses: actions-rs/toolchain@v1
# with: { toolchain: stable }
# - name: Install webkit2gtk (ubuntu only)
# if: matrix.os == 'ubuntu-latest'
# run: |
# sudo apt-get update
# sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
# - name: Install Node.js dependencies
# run: yarn install
# - name: Test build
# uses: tauri-apps/tauri-action@v0
# if: (!startsWith(github.ref, 'refs/tags/v'))
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
# - name: Build the app
# if: startsWith(github.ref, 'refs/tags/v')
# uses: tauri-apps/tauri-action@v0
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
# # ENABLE_CODE_SIGNING: ${{ secrets.APPLE_CERTIFICATE }}
# # APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
# # APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
# # APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
# # APPLE_ID: ${{ secrets.APPLE_ID }}
# # APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
# with:
# tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
# releaseName: 'herocast v__VERSION__'
# prerelease: false
# - name: Upload release artifacts
# if: startsWith(github.ref, 'refs/tags/v')
# uses: actions/upload-artifact@v3
# with:
# name: release-${{ matrix.os }}
# path: |
# src-tauri/target/release/**/*
# - name: Sentry Release
# if: github.ref == 'refs/heads/main'
# uses: getsentry/[email protected]
# env:
# SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
# SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
# SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}