mirror of
https://github.com/VioletTides/KnockThru.git
synced 2026-10-17 19:01:38 +02:00
release.yml built only detector_test, so ctest found no config_test or update_test binary, marked them Not Run, and exited 8. The first v* tag would have failed before publishing a release.
44 lines
1.4 KiB
YAML
44 lines
1.4 KiB
YAML
# On a v* tag: run the host tests, build for the Steam Frame, and attach
|
|
# the ZIP, the FrameDrop manifest, and install.sh to a GitHub release.
|
|
name: release
|
|
|
|
on:
|
|
push:
|
|
tags: ["v*"]
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Build and test
|
|
run: |
|
|
cmake -S . -B build
|
|
cmake --build build --parallel
|
|
ctest --test-dir build --output-on-failure
|
|
|
|
- name: Install Zig 0.16.0
|
|
run: |
|
|
curl -sSfL -o zig.tar.xz https://ziglang.org/download/0.16.0/zig-x86_64-linux-0.16.0.tar.xz
|
|
echo "70e49664a74374b48b51e6f3fdfbf437f6395d42509050588bd49abe52ba3d00 zig.tar.xz" | sha256sum -c
|
|
mkdir zig && tar -xf zig.tar.xz -C zig --strip-components=1
|
|
echo "$PWD/zig" >> "$GITHUB_PATH"
|
|
|
|
- name: Build for the Steam Frame
|
|
run: KNOCKTHRU_VERSION="${GITHUB_REF_NAME#v}" scripts/build-arm64.sh
|
|
|
|
- name: Package
|
|
run: |
|
|
node scripts/package.mjs --build-dir build-arm64 --version "${GITHUB_REF_NAME#v}" \
|
|
--base-url "https://github.com/${GITHUB_REPOSITORY}/releases/download/${GITHUB_REF_NAME}/"
|
|
cp scripts/install.sh dist/install.sh
|
|
|
|
- name: Publish the release
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
run: gh release create "$GITHUB_REF_NAME" dist/* --title "KnockThru ${GITHUB_REF_NAME}" --generate-notes
|