diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4877e76b5..24ab66126 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,19 +25,19 @@ jobs: - name: Set Matrix id: set_matrix env: - FULL_NODE_VERSIONS: '["18.x", "20.x", "21.x"]' + FULL_NODE_VERSIONS: '["18.x", "20.x", "22.x"]' FULL_RUST_TOOLCHAINS: '["stable", "nightly"]' - PARTIAL_NODE_VERSIONS: '["20.x"]' + PARTIAL_NODE_VERSIONS: '["22.x"]' PARTIAL_RUST_TOOLCHAINS: '["stable"]' HAS_FULL_MATRIX_LABEL: ${{ contains(github.event.pull_request.labels.*.name, 'full matrix') }} IS_PUSHED: ${{ github.event_name == 'push' }} run: | if [[ "$HAS_FULL_MATRIX_LABEL" == "true" ]] || [[ "$IS_PUSHED" == "true" ]]; then - echo "::set-output name=node_version::$FULL_NODE_VERSIONS" - echo "::set-output name=rust_toolchain::$FULL_RUST_TOOLCHAINS" + echo "node_version=$FULL_NODE_VERSIONS" >> $GITHUB_OUTPUT + echo "rust_toolchain=$FULL_RUST_TOOLCHAINS" >> $GITHUB_OUTPUT else - echo "::set-output name=node_version::$PARTIAL_NODE_VERSIONS" - echo "::set-output name=rust_toolchain::$PARTIAL_RUST_TOOLCHAINS" + echo "node_version=$PARTIAL_NODE_VERSIONS" >> $GITHUB_OUTPUT + echo "rust_toolchain=$PARTIAL_RUST_TOOLCHAINS" >> $GITHUB_OUTPUT fi build: @@ -54,9 +54,9 @@ jobs: uses: actions/checkout@v4 - name: Use Rust ${{ matrix.rust-toolchain }} - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ matrix.rust-toolchain }} + run: > + rustup toolchain install --profile complete ${{ matrix.rust-toolchain }} && + rustup default ${{ matrix.rust-toolchain }} - name: Rust Cache uses: Swatinem/rust-cache@v2 @@ -70,7 +70,7 @@ jobs: - name: Electron Cache Variables id: electron_cache_vars run: | - echo "::set-output name=key::${{ runner.os }}-electron-${{ hashFiles('./package-lock.json') }}" + echo "key=${{ runner.os }}-electron-${{ hashFiles('./package-lock.json') }}" >> $GITHUB_OUTPUT - name: Cache Electron (Linux) if: matrix.os == 'ubuntu-latest' uses: actions/cache@v4 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4833bbb77..b4a7dfbee 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -20,15 +20,16 @@ jobs: strategy: matrix: - node-version: [20.x] + node-version: [22.x] rust-toolchain: [nightly] steps: - - uses: actions/checkout@v4 + - name: Checkout Code + uses: actions/checkout@v4 - name: Use Rust ${{ matrix.rust-toolchain }} - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ matrix.rust-toolchain }} + run: > + rustup toolchain install --profile complete ${{ matrix.rust-toolchain }} && + rustup default ${{ matrix.rust-toolchain }} - name: Rust Cache uses: Swatinem/rust-cache@v2 - name: Use Node.js ${{ matrix.node-version }}