chore: build binary for both macOS aarch64 and amd64 (#816)

This commit is contained in:
SteveLauC
2024-05-25 20:26:21 +08:00
committed by GitHub
parent d1d8904376
commit f96eeeda6b
3 changed files with 9 additions and 9 deletions

View File

@@ -14,7 +14,7 @@ on:
jobs:
lint:
name: DevSkim
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
permissions:
actions: read
contents: read

View File

@@ -14,7 +14,7 @@ env:
jobs:
fmt:
name: Rustfmt
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
@@ -42,16 +42,16 @@ jobs:
- target: x86_64-linux-android
target_name: Android
use_cross: true
os: ubuntu-20.04
os: ubuntu-latest
- target: x86_64-unknown-freebsd
target_name: FreeBSD
use_cross: true
os: ubuntu-20.04
os: ubuntu-latest
- target: x86_64-unknown-linux-gnu
target_name: Linux
os: ubuntu-20.04
os: ubuntu-latest
- target: x86_64-apple-darwin
target_name: macOS-x86_64
@@ -59,16 +59,16 @@ jobs:
- target: aarch64-apple-darwin
target_name: macOS-aarch64
os: macos-14
os: macos-latest
- target: x86_64-unknown-netbsd
target_name: NetBSD
use_cross: true
os: ubuntu-20.04
os: ubuntu-latest
- target: x86_64-pc-windows-msvc
target_name: Windows
os: windows-2019
os: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

View File

@@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [ ubuntu-latest, macos-latest, windows-latest ]
platform: [ ubuntu-latest, macos-latest, macos-13, windows-latest ]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4