From 3ef13e43f16638c5d16e36d392c38f40378822b7 Mon Sep 17 00:00:00 2001 From: reya <123083837+reyamir@users.noreply.github.com> Date: Sun, 12 May 2024 08:38:23 +0700 Subject: [PATCH] chore: update github ci --- .github/workflows/main.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e07e615c..133b87c1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,22 +13,25 @@ jobs: matrix: settings: - 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' # args: '' #- platform: 'windows-latest' # args: '--target x86_64-pc-windows-msvc' runs-on: ${{ matrix.settings.platform }} steps: - - uses: actions/checkout@v3 - - name: setup node - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - name: Setup Node + uses: actions/setup-node@v4 with: - node-version: 20 - - uses: dtolnay/rust-toolchain@stable + node-version: lts/* + - name: Install Rust + uses: dtolnay/rust-toolchain@stable with: - targets: aarch64-apple-darwin - - name: install dependencies (ubuntu only) + targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} + - name: Install dependencies (ubuntu only) if: matrix.settings.platform == 'ubuntu-22.04' run: | sudo apt-get update