mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-11 22:40:26 +01:00
Explicit targets
This commit is contained in:
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
@@ -17,27 +17,33 @@ jobs:
|
|||||||
args: '--target aarch64-apple-darwin'
|
args: '--target aarch64-apple-darwin'
|
||||||
yaak_arch: 'arm64'
|
yaak_arch: 'arm64'
|
||||||
os: 'macos'
|
os: 'macos'
|
||||||
|
targets: 'aarch64-apple-darwin'
|
||||||
- platform: 'macos-latest' # for Intel-based Macs.
|
- platform: 'macos-latest' # for Intel-based Macs.
|
||||||
args: '--target x86_64-apple-darwin'
|
args: '--target x86_64-apple-darwin'
|
||||||
yaak_arch: 'x64'
|
yaak_arch: 'x64'
|
||||||
os: 'macos'
|
os: 'macos'
|
||||||
|
targets: 'x86_64-apple-darwin'
|
||||||
- platform: 'ubuntu-22.04'
|
- platform: 'ubuntu-22.04'
|
||||||
args: ''
|
args: ''
|
||||||
yaak_arch: 'x64'
|
yaak_arch: 'x64'
|
||||||
os: 'ubuntu'
|
os: 'ubuntu'
|
||||||
|
targets: ''
|
||||||
- platform: 'ubuntu-22.04-arm'
|
- platform: 'ubuntu-22.04-arm'
|
||||||
args: ''
|
args: ''
|
||||||
yaak_arch: 'arm64'
|
yaak_arch: 'arm64'
|
||||||
os: 'ubuntu'
|
os: 'ubuntu'
|
||||||
|
targets: ''
|
||||||
- platform: 'windows-latest'
|
- platform: 'windows-latest'
|
||||||
args: ''
|
args: ''
|
||||||
yaak_arch: 'x64'
|
yaak_arch: 'x64'
|
||||||
os: 'windows'
|
os: 'windows'
|
||||||
|
targets: ''
|
||||||
# Windows ARM64
|
# Windows ARM64
|
||||||
- platform: 'windows-latest'
|
- platform: 'windows-latest'
|
||||||
args: '--target aarch64-pc-windows-msvc'
|
args: '--target aarch64-pc-windows-msvc'
|
||||||
yaak_arch: 'arm64'
|
yaak_arch: 'arm64'
|
||||||
os: 'windows'
|
os: 'windows'
|
||||||
|
targets: 'aarch64-pc-windows-msvc'
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
timeout-minutes: 40
|
timeout-minutes: 40
|
||||||
steps:
|
steps:
|
||||||
@@ -50,9 +56,7 @@ jobs:
|
|||||||
- name: install Rust stable
|
- name: install Rust stable
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
targets: |
|
targets: ${{ matrix.targets }}
|
||||||
${{ matrix.os == 'macos' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
|
|
||||||
${{ matrix.os == 'windows' && matrix.yaak_arch == 'arm64' && 'aarch64-pc-windows-msvc' || '' }}
|
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user