ci: unify ci and cd build step (#6)
Reviewed-on: #6 Co-authored-by: Timo Behrendt <t.behrendt@t00n.de> Co-committed-by: Timo Behrendt <t.behrendt@t00n.de>
This commit was merged in pull request #6.
This commit is contained in:
@@ -5,20 +5,16 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on:
|
||||
- ubuntu-latest
|
||||
- linux_amd64
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y build-essential cmake
|
||||
- name: Configure and build
|
||||
run: |
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake ..
|
||||
cmake --build .
|
||||
- name: Verify binary
|
||||
run: |
|
||||
test -f build/usbmakroboard && echo "Binary built successfully" || exit 1
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- runner: linux_amd64
|
||||
arch: amd64
|
||||
artifact_name: usbmakroboard-amd64
|
||||
- runner: linux_arm64
|
||||
arch: arm64
|
||||
artifact_name: usbmakroboard-arm64
|
||||
uses: ./.gitea/workflows/build.yaml
|
||||
with:
|
||||
runner: ${{ matrix.runner }}
|
||||
arch: ${{ matrix.arch }}
|
||||
|
||||
Reference in New Issue
Block a user