Use Apple Silicon runner for release, clippy, and cache factory workflows (#2035)

* Change release workflow to use apple silicon runner

* Use apple silicon runner for clippy and cache factory

* Update release and cache-factory to macos-14 and part of CI to ubuntu-latest

* Revert to ubuntu-latest for creating a release

---------

Co-authored-by: Vítor Vasconcellos <vasconcellos.dev@gmail.com>
This commit is contained in:
Julian Braha 2024-02-13 21:25:53 +00:00 committed by GitHub
parent 7aae22e83f
commit 1320dbda46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 10 deletions

View file

@ -21,9 +21,9 @@ jobs:
fail-fast: true
matrix:
settings:
- host: macos-latest
- host: macos-14
target: x86_64-apple-darwin
- host: macos-latest
- host: macos-14
target: aarch64-apple-darwin
- host: windows-latest
target: x86_64-pc-windows-msvc
@ -46,7 +46,7 @@ jobs:
if: ${{ runner.os == 'Linux' }}
uses: easimon/maximize-build-space@master
with:
swap-size-mb: 3072
swap-size-mb: 4096
root-reserve-mb: 6144
remove-dotnet: 'true'
remove-codeql: 'true'

View file

@ -15,7 +15,7 @@ concurrency:
jobs:
typescript:
name: TypeScript
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
@ -30,7 +30,7 @@ jobs:
eslint:
name: ESLint
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
@ -45,7 +45,7 @@ jobs:
rustfmt:
name: Rust Formatting
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Maximize build space
if: ${{ runner.os == 'Linux' }}
@ -97,7 +97,7 @@ jobs:
runs-on: ${{ matrix.platform }}
strategy:
matrix:
platform: [ubuntu-20.04, macos-latest, windows-latest]
platform: [ubuntu-20.04, macos-14, windows-latest]
steps:
- name: Maximize build space
if: ${{ runner.os == 'Linux' }}

View file

@ -9,12 +9,12 @@ jobs:
strategy:
matrix:
settings:
- host: macos-latest
- host: macos-14
target: x86_64-apple-darwin
bundles: app,dmg
os: darwin
arch: x86_64
- host: macos-latest
- host: macos-14
target: aarch64-apple-darwin
bundles: app,dmg
os: darwin

View file

@ -8,7 +8,7 @@ on:
jobs:
build-server:
name: Build a docker image for spacedrive server
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
defaults:
run:
shell: bash