Skip to content
Snippets Groups Projects
Unverified Commit 66fccd3c authored by GyDi's avatar GyDi Committed by GitHub
Browse files

chore: test ci

parent 9a4ebf4d
No related branches found
No related tags found
No related merge requests found
name: Test CI name: Test CI
on: workflow_dispatch on:
workflow_dispatch:
inputs:
os:
description: "Runs on OS"
required: true
default: windows-latest
type: choice
options:
- windows-latest
- ubuntu-latest
- macos-latest
env: env:
CARGO_INCREMENTAL: 0 CARGO_INCREMENTAL: 0
...@@ -8,10 +19,7 @@ env: ...@@ -8,10 +19,7 @@ env:
jobs: jobs:
release: release:
strategy: runs-on: ${{ github.event.inputs.os }}
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
if: startsWith(github.repository, 'zzzgydi') if: startsWith(github.repository, 'zzzgydi')
steps: steps:
- name: Checkout repository - name: Checkout repository
...@@ -30,10 +38,10 @@ jobs: ...@@ -30,10 +38,10 @@ jobs:
node-version: 14 node-version: 14
- name: Install Dependencies (ubuntu only) - name: Install Dependencies (ubuntu only)
if: matrix.os == 'ubuntu-latest' if: github.event.inputs.os == 'ubuntu-latest'
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev libayatana-appindicator-dev patchelf sudo apt-get install -y libwebkit2gtk-4.0-dev build-essential curl wget libssl-dev libgtk-3-dev libappindicator3-dev librsvg2-dev libappindicator
- name: Get yarn cache dir path - name: Get yarn cache dir path
id: yarn-cache-dir-path id: yarn-cache-dir-path
...@@ -55,8 +63,6 @@ jobs: ...@@ -55,8 +63,6 @@ jobs:
- name: Tauri build - name: Tauri build
uses: tauri-apps/tauri-action@0e558392ccadcb49bcc89e7df15a400e8f0c954d uses: tauri-apps/tauri-action@0e558392ccadcb49bcc89e7df15a400e8f0c954d
# enable cache even though failed
continue-on-error: true
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment