ci: add checksum and differentiage between releases
All checks were successful
All checks were successful
This commit is contained in:
@@ -26,7 +26,7 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- run: |
|
- run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y build-essential cmake
|
sudo apt-get install -y build-essential cmake zip
|
||||||
- name: Configure and build
|
- name: Configure and build
|
||||||
run: |
|
run: |
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
@@ -36,11 +36,21 @@ jobs:
|
|||||||
- name: Verify binary
|
- name: Verify binary
|
||||||
run: |
|
run: |
|
||||||
test -f build/usbmakroboard && echo "Binary built successfully" || exit 1
|
test -f build/usbmakroboard && echo "Binary built successfully" || exit 1
|
||||||
- name: Upload artifact
|
- name: Create zip archive
|
||||||
|
run: |
|
||||||
|
cd build
|
||||||
|
zip usbmakroboard-linux-${{ matrix.arch }}.zip usbmakroboard
|
||||||
|
- name: Generate checksum
|
||||||
|
run: |
|
||||||
|
cd build
|
||||||
|
sha256sum usbmakroboard-linux-${{ matrix.arch }}.zip > usbmakroboard-linux-${{ matrix.arch }}.zip.sha256
|
||||||
|
- name: Upload artifacts
|
||||||
uses: ChristopherHX/gitea-upload-artifact@v4
|
uses: ChristopherHX/gitea-upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.artifact_name }}
|
name: ${{ matrix.artifact_name }}
|
||||||
path: build/usbmakroboard
|
path: |
|
||||||
|
build/usbmakroboard-linux-${{ matrix.arch }}.zip
|
||||||
|
build/usbmakroboard-linux-${{ matrix.arch }}.zip.sha256
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
release:
|
release:
|
||||||
@@ -70,7 +80,9 @@ jobs:
|
|||||||
tag_name: ${{ steps.tag.outputs.new-tag }}
|
tag_name: ${{ steps.tag.outputs.new-tag }}
|
||||||
name: ${{ steps.tag.outputs.new-tag }}
|
name: ${{ steps.tag.outputs.new-tag }}
|
||||||
files: |
|
files: |
|
||||||
artifacts/usbmakroboard-amd64/usbmakroboard
|
artifacts/usbmakroboard-amd64/usbmakroboard-linux-amd64.zip
|
||||||
artifacts/usbmakroboard-arm64/usbmakroboard
|
artifacts/usbmakroboard-amd64/usbmakroboard-linux-amd64.zip.sha256
|
||||||
|
artifacts/usbmakroboard-arm64/usbmakroboard-linux-arm64.zip
|
||||||
|
artifacts/usbmakroboard-arm64/usbmakroboard-linux-arm64.zip.sha256
|
||||||
prerelease: ${{ github.event_name == 'workflow_dispatch' }}
|
prerelease: ${{ github.event_name == 'workflow_dispatch' }}
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user