mirror of
https://github.com/ivabus/gui
synced 2025-06-07 07:40:27 +03:00
test m1
This commit is contained in:
parent
c62de97053
commit
3b717b25c2
1 changed files with 65 additions and 0 deletions
65
.github/workflows/m1.yml
vendored
Normal file
65
.github/workflows/m1.yml
vendored
Normal file
|
@ -0,0 +1,65 @@
|
|||
name: "deploy"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- m1-test
|
||||
|
||||
|
||||
jobs:
|
||||
build_tauri:
|
||||
timeout-minutes: 6
|
||||
runs-on: ${{ matrix.platform.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
platform:
|
||||
# - os: macos-11
|
||||
# name: darwin+x86-64
|
||||
# - os: ubuntu-latest
|
||||
# name: linux+x86-64
|
||||
- os: [self-hosted, macOS, ARM64]
|
||||
name: darwin+aarch64
|
||||
# - os: [self-hosted, linux, ARM64]
|
||||
# name: linux+aarch64
|
||||
container: ${{ matrix.platform.container }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: 7
|
||||
- name: setup node
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 18
|
||||
cache: 'pnpm'
|
||||
cache-dependency-path: pnpm-lock.yaml
|
||||
- name: install Rust stable
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
# The prefix cache key, this can be changed to start a new cache manually.
|
||||
# default: "v0-rust"
|
||||
prefix-key: ${{ matrix.platform.name }}
|
||||
shared-key: prod
|
||||
cache-targets: false
|
||||
# - name: install dependencies (ubuntu only)
|
||||
# if: matrix.platform.name == 'linux+x86-64'
|
||||
# run: |
|
||||
# sudo apt-get update
|
||||
# sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
|
||||
- name: install app dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: Cache Tauri Target
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
./modules/gui/src-tauri/target
|
||||
key: m1-test
|
||||
restore-keys: m1-test
|
||||
|
||||
- name: test dev tauri
|
||||
run: pnpm dev:gui
|
Loading…
Reference in a new issue