From 2b6d06545dc8ef3cc0ff59146236f152b841a668 Mon Sep 17 00:00:00 2001 From: Antoine POPINEAU Date: Thu, 25 Apr 2024 20:32:12 +0200 Subject: [PATCH] Updating CI actions. --- .github/workflows/dev.yml | 9 ++------- .github/workflows/release.yml | 11 +++-------- .github/workflows/tip.yml | 11 +++-------- 3 files changed, 8 insertions(+), 23 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index e463686..6b2a828 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -37,12 +37,7 @@ jobs: strategy: matrix: arch: - - { - name: "x86_64", - os: "ubuntu-latest", - target: "x86_64-unknown-linux-gnu", - cross: false, - } + - { name: "x86_64", os: "ubuntu-latest", target: "x86_64-unknown-linux-gnu", cross: false } runs-on: ${{ matrix.arch.os }} steps: - uses: actions/checkout@v4 @@ -56,7 +51,7 @@ jobs: - name: Rename artifact run: mv target/${{ matrix.arch.target }}/release/tuigreet target/${{ matrix.arch.target }}/release/tuigreet-dev-${{ matrix.arch.name }} - name: Upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: tuigreet-dev-${{ matrix.arch.name }} path: target/${{ matrix.arch.target }}/release/tuigreet-dev-${{ matrix.arch.name }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4a9e4d5..e9eaa86 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,12 +37,7 @@ jobs: strategy: matrix: arch: - - { - name: "x86_64", - os: "ubuntu-latest", - target: "x86_64-unknown-linux-gnu", - cross: false, - } + - { name: "x86_64", os: "ubuntu-latest", target: "x86_64-unknown-linux-gnu", cross: false } runs-on: ${{ matrix.arch.os }} steps: - name: Get the version @@ -60,7 +55,7 @@ jobs: - name: Rename artifact run: mv target/${{ matrix.arch.target }}/release/tuigreet target/${{ matrix.arch.target }}/release/tuigreet-${{ steps.version.outputs.VERSION }}-${{ matrix.arch.name }} - name: Upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: tuigreet-${{ steps.version.outputs.VERSION }}-${{ matrix.arch.name }} path: target/${{ matrix.arch.target }}/release/tuigreet-${{ steps.version.outputs.VERSION }}-${{ matrix.arch.name }} @@ -73,7 +68,7 @@ jobs: id: version run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: path: target/out - name: Create release diff --git a/.github/workflows/tip.yml b/.github/workflows/tip.yml index 4aeaf31..e70de0f 100644 --- a/.github/workflows/tip.yml +++ b/.github/workflows/tip.yml @@ -37,12 +37,7 @@ jobs: strategy: matrix: arch: - - { - name: "x86_64", - os: "ubuntu-latest", - target: "x86_64-unknown-linux-gnu", - cross: false, - } + - { name: "x86_64", os: "ubuntu-latest", target: "x86_64-unknown-linux-gnu", cross: false } runs-on: ${{ matrix.arch.os }} steps: - uses: actions/checkout@v4 @@ -56,7 +51,7 @@ jobs: - name: Rename artifact run: mv target/${{ matrix.arch.target }}/release/tuigreet target/${{ matrix.arch.target }}/release/tuigreet-dev-${{ matrix.arch.name }} - name: Upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: tuigreet-dev-${{ matrix.arch.name }} path: target/${{ matrix.arch.target }}/release/tuigreet-dev-${{ matrix.arch.name }} @@ -66,7 +61,7 @@ jobs: needs: build steps: - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: path: target/out - name: Create release