chore: update github ci

This commit is contained in:
reya
2024-05-12 08:38:23 +07:00
parent 8939196ae4
commit 3ef13e43f1

View File

@@ -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