Updating CI actions.

This commit is contained in:
Antoine POPINEAU 2024-04-25 20:32:12 +02:00
parent 1cf1d1795a
commit 2b6d06545d
No known key found for this signature in database
GPG Key ID: E8379674E92D25D2
3 changed files with 8 additions and 23 deletions

View File

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

View File

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

View File

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