From 050045f644c84a91f4cf43c64e5659069b788ff5 Mon Sep 17 00:00:00 2001 From: lencx Date: Wed, 28 Dec 2022 01:25:28 +0800 Subject: [PATCH] chore: action --- .github/workflows/release.yml | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 67faa25..a013190 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,7 @@ on: jobs: create-release: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 outputs: RELEASE_UPLOAD_ID: ${{ steps.create_release.outputs.id }} @@ -36,30 +36,23 @@ jobs: strategy: fail-fast: false matrix: - platform: [macos-latest, ubuntu-latest, windows-latest] + platform: [macos-latest, ubuntu-20.04, windows-latest] runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v2 - - - name: Setup node - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - name: setup node + uses: actions/setup-node@v3 with: - node-version: 18 - - - name: Install Rust stable - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - - # Rust cache - - uses: Swatinem/rust-cache@v1 + node-version: 16 + - name: install Rust stable + uses: dtolnay/rust-toolchain@stable - name: install dependencies (ubuntu only) - if: matrix.platform == 'ubuntu-latest' + if: matrix.platform == 'ubuntu-20.04' run: | sudo apt-get update - sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf + sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf - name: Install app dependencies and build it run: yarn && yarn build:fe @@ -79,7 +72,7 @@ jobs: releaseId: ${{ needs.create-release.outputs.RELEASE_UPLOAD_ID }} updater: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 needs: [create-release, build-tauri] steps: