chore: update github ci
This commit is contained in:
19
.github/workflows/main.yml
vendored
19
.github/workflows/main.yml
vendored
@@ -13,22 +13,25 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
settings:
|
settings:
|
||||||
- platform: "macos-latest"
|
- platform: "macos-latest"
|
||||||
args: "--target universal-apple-darwin"
|
args: "--target aarch64-apple-darwin"
|
||||||
|
- platform: "macos-latest"
|
||||||
|
args: "--target x86_64-apple-darwin"
|
||||||
#- platform: 'ubuntu-22.04'
|
#- platform: 'ubuntu-22.04'
|
||||||
# args: ''
|
# args: ''
|
||||||
#- platform: 'windows-latest'
|
#- platform: 'windows-latest'
|
||||||
# args: '--target x86_64-pc-windows-msvc'
|
# args: '--target x86_64-pc-windows-msvc'
|
||||||
runs-on: ${{ matrix.settings.platform }}
|
runs-on: ${{ matrix.settings.platform }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: setup node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: lts/*
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- name: Install Rust
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
targets: aarch64-apple-darwin
|
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
|
||||||
- name: install dependencies (ubuntu only)
|
- name: Install dependencies (ubuntu only)
|
||||||
if: matrix.settings.platform == 'ubuntu-22.04'
|
if: matrix.settings.platform == 'ubuntu-22.04'
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|||||||
Reference in New Issue
Block a user