Update GitHub actions dependencies

Use newer versions of actions, Node 16 -> 18

Fixes several warnings in the actions tab regarding usage of Node 16
This commit is contained in:
LucasFA 2024-02-16 12:28:16 +01:00
parent ed425f8700
commit c8fd8a33d2
No known key found for this signature in database
3 changed files with 10 additions and 10 deletions

View File

@ -165,9 +165,9 @@ jobs:
if: needs.changes.outputs.typescript == 'true' if: needs.changes.outputs.typescript == 'true'
- name: Install Nodejs - name: Install Nodejs
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: 16 node-version: 18
if: needs.changes.outputs.typescript == 'true' if: needs.changes.outputs.typescript == 'true'
- name: Install xvfb - name: Install xvfb

View File

@ -21,7 +21,7 @@ jobs:
rustup component add rustfmt rust-src rustup component add rustfmt rust-src
rustup default stable rustup default stable
- name: Cache cargo - name: Cache cargo
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: | path: |
~/.cargo/bin/ ~/.cargo/bin/
@ -39,7 +39,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Restore cargo cache - name: Restore cargo cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: | path: |
~/.cargo/bin/ ~/.cargo/bin/
@ -52,7 +52,7 @@ jobs:
run: cargo xtask metrics build run: cargo xtask metrics build
- name: Cache target - name: Cache target
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: target/ path: target/
key: ${{ runner.os }}-target-${{ github.sha }} key: ${{ runner.os }}-target-${{ github.sha }}
@ -76,7 +76,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Restore cargo cache - name: Restore cargo cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: | path: |
~/.cargo/bin/ ~/.cargo/bin/
@ -86,7 +86,7 @@ jobs:
key: ${{ runner.os }}-cargo-${{ github.sha }} key: ${{ runner.os }}-cargo-${{ github.sha }}
- name: Restore target cache - name: Restore target cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: target/ path: target/
key: ${{ runner.os }}-target-${{ github.sha }} key: ${{ runner.os }}-target-${{ github.sha }}

View File

@ -80,7 +80,7 @@ jobs:
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: 16 node-version: 18
- name: Update apt repositories - name: Update apt repositories
if: matrix.target == 'aarch64-unknown-linux-gnu' || matrix.target == 'arm-unknown-linux-gnueabihf' if: matrix.target == 'aarch64-unknown-linux-gnu' || matrix.target == 'arm-unknown-linux-gnueabihf'
@ -188,9 +188,9 @@ jobs:
needs: ["dist", "dist-x86_64-unknown-linux-musl"] needs: ["dist", "dist-x86_64-unknown-linux-musl"]
steps: steps:
- name: Install Nodejs - name: Install Nodejs
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: 16 node-version: 18
- run: echo "TAG=$(date --iso -u)" >> $GITHUB_ENV - run: echo "TAG=$(date --iso -u)" >> $GITHUB_ENV
if: github.ref == 'refs/heads/release' if: github.ref == 'refs/heads/release'