CI: Enable the uploading of packaged build artifacts
This commit is contained in:
parent
67802a4d6f
commit
2cf5320799
2 changed files with 18 additions and 22 deletions
|
|
@ -10,13 +10,15 @@ jobs:
|
|||
run: apt update; apt install -y libusb-1.0-0-dev cmake
|
||||
- name: Check out repository code
|
||||
uses: ischanx/checkout@8c80eac3058d03dc5301629e8f7d59ae255d6cc3
|
||||
- name: Version
|
||||
id: version
|
||||
run: git fetch -a; echo "tag=$(git describe --tags `git rev-list --tags --max-count=1`)" >> $GITHUB_OUTPUT
|
||||
- name: Build
|
||||
run: mkdir ${{ gitea.workspace }}/build; cd ${{ gitea.workspace }}/build; cmake -DCMAKE_BUILD_TYPE=Release ..; make
|
||||
run: mkdir ${{ gitea.workspace }}/build; cd ${{ gitea.workspace }}/build; cmake -DCMAKE_BUILD_TYPE=Release -DGIT_TAG=${{ steps.version.outputs.tag }} ..; make
|
||||
- name: Package
|
||||
run: cd ${{ gitea.workspace }}/build; make package
|
||||
- name: Upload artifacts
|
||||
uses: https://gitea.com/actions/upload-artifact.git@v4.6.2
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: package-linux
|
||||
path: eismultiplexer-linux-*.zip
|
||||
|
||||
name: eismultiplexer-linux-x86_64-${{ steps.version.outputs.tag }}
|
||||
path: ${{ gitea.workspace }}/build/packaged/${{ steps.version.outputs.tag }}/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue