DeviceScanner/.gitea/workflows/BuildRelease.yaml
Karutoh 0df6a01e17
Some checks failed
Build & Release / Linux-AMD64-Build (push) Failing after 4s
Build & Release / Windows-AMD64-Build (push) Failing after 9s
Build & Release / Linux-AARCH64-Build (push) Failing after 8s
Fixed workflow.
2025-03-28 23:58:38 -07:00

104 lines
2.9 KiB
YAML

name: Build & Release
run-name: ${{ gitea.actor }} is testing out Gitea Actions
on:
push:
tags:
- "v*"
jobs:
Windows-AMD64-Build:
runs-on: windows-x86_64
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Building/Compiling/Installing Project
run: |
cd ${{ gitea.workspace }}
cmake -A x64 -DCMAKE_BUILD_TYPE=Release --preset=default .
cd build
cmake --build . --config Release
- name: Creating Appropriate Directories
run: |
cd ${{ gitea.workspace }}
mv build/Release/DeviceScanner.exe .
mv build/Release/zlib1.dll .
- name: Zipping Binaries
run: |
cd ${{ gitea.workspace }}
tar -a -c -f device-scanner-windows-amd64.zip DeviceScanner.exe zlib1.dll
- uses: https://github.com/actions/setup-go@v4
with:
go-version: '>=1.20.1'
- name: Use Go Action
id: use-go-action
uses: https://gitea.com/actions/release-action@main
with:
files: |-
device-scanner-windows-amd64.zip
api_key: '${{secrets.RELEASE_TOKEN}}'
Linux-AMD64-Build:
runs-on: linux-x86_64
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Installing Dependencies
run: |
sudo pacman -S --noconfirm zip alsa-lib libxcb xcb-util-cursor
- name: Building/Compiling/Installing Project
run: |
cd ${{ gitea.workspace }}
cmake -DCMAKE_BUILD_TYPE=Release .
cmake --build . --config Release
- name: Zipping Binaries
run: zip -r device-scanner-linux-amd64.zip DeviceScanner
- uses: https://github.com/actions/setup-go@v4
with:
go-version: '>=1.20.1'
- name: Use Go Action
id: use-go-action
uses: https://gitea.com/actions/release-action@main
with:
files: |-
device-scanner-linux-amd64.zip
api_key: '${{secrets.RELEASE_TOKEN}}'
Linux-AARCH64-Build:
runs-on: linux-aarch64
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Installing Dependencies
run: sudo apt install -y zip libasound2-dev libxcb1-dev libxcb-xinput-dev libxcb-cursor-dev
- name: Building/Compiling/Installing Project
run: |
cd ${{ gitea.workspace }}
cmake -DCMAKE_BUILD_TYPE=Release .
cmake --build . --config Release
- name: Zipping Binaries
run: zip -r device-scanner-linux-aarch64.zip DeviceScanner
- uses: https://github.com/actions/setup-go@v4
with:
go-version: '>=1.20.1'
- name: Use Go Action
id: use-go-action
uses: https://gitea.com/actions/release-action@main
with:
files: |-
device-scanner-linux-aarch64.zip
api_key: '${{secrets.RELEASE_TOKEN}}'