Downgrade ubuntu CI runner (#50)
* Build in older ubuntu version * Reset cache
This commit is contained in:
19
.github/workflows/pre-release.yml
vendored
19
.github/workflows/pre-release.yml
vendored
@@ -30,7 +30,7 @@ env:
|
||||
|
||||
jobs:
|
||||
bump-version:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
outputs:
|
||||
new_tag: ${{ steps.version.outputs.new_tag }}
|
||||
new_version: ${{ steps.version.outputs.new_version }}
|
||||
@@ -70,7 +70,7 @@ jobs:
|
||||
|
||||
build-frontend:
|
||||
needs: bump-version
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
@@ -106,7 +106,7 @@ jobs:
|
||||
matrix:
|
||||
include:
|
||||
- target: x86_64-unknown-linux-gnu
|
||||
os: ubuntu-latest
|
||||
os: ubuntu-22.04
|
||||
name: linux-x64
|
||||
- target: x86_64-pc-windows-msvc
|
||||
os: windows-latest-l
|
||||
@@ -121,7 +121,7 @@ jobs:
|
||||
os: windows-latest-l
|
||||
name: windows-arm64
|
||||
- target: aarch64-unknown-linux-gnu
|
||||
os: ubuntu-latest
|
||||
os: ubuntu-22.04
|
||||
name: linux-arm64
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -139,7 +139,8 @@ jobs:
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
workspaces: "."
|
||||
key: ${{ matrix.target }}
|
||||
prefix-key: "cache-v1.0"
|
||||
key: ${{ matrix.target }}_${{ matrix.os }}
|
||||
cache-on-failure: true
|
||||
shared-key: "shared"
|
||||
cache-all-crates: true
|
||||
@@ -151,13 +152,13 @@ jobs:
|
||||
path: frontend/dist/
|
||||
|
||||
- name: Install system dependencies (Linux)
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
if: matrix.os == 'ubuntu-22.04'
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y pkg-config libssl-dev
|
||||
|
||||
- name: Install ARM64 cross-compilation dependencies (Linux)
|
||||
if: matrix.os == 'ubuntu-latest' && matrix.target == 'aarch64-unknown-linux-gnu'
|
||||
if: matrix.os == 'ubuntu-22.04' && matrix.target == 'aarch64-unknown-linux-gnu'
|
||||
run: |
|
||||
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu libc6-dev-arm64-cross
|
||||
|
||||
@@ -265,7 +266,7 @@ jobs:
|
||||
|
||||
package-npx-cli:
|
||||
needs: [bump-version, build-frontend, build-backend]
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
strategy:
|
||||
# NOTE: This matrix must be kept in sync with build-backend job above
|
||||
# GitHub Actions doesn't support YAML anchors, so duplication is unavoidable
|
||||
@@ -347,7 +348,7 @@ jobs:
|
||||
|
||||
create-prerelease:
|
||||
needs: [bump-version, build-frontend, build-backend, package-npx-cli]
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user