Skip to content

Debian Bookworm release #53

Debian Bookworm release

Debian Bookworm release #53

Workflow file for this run

name: Debian Bookworm Release
on:
push:
# this won't work as the build requires a tag with a version number
# branches:
# - main
tags:
- "v*.*.*"
workflow_dispatch:
# allows manual execution of the workflow
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Maximize build space
uses: AdityaGarg8/remove-unwanted-software@e2a42bc9a15f8414a9078f38b702de2a2976733d # tag `v3`
with:
remove-android: 'true'
remove-cached-tools: 'true'
remove-codeql: 'true'
#remove-docker-images: 'true'
remove-dotnet: 'true'
remove-haskell: 'true'
remove-large-packages: 'true'
#remove-swapfile: 'true'
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Cache vcpkg packages
uses: actions/cache@v4
with:
key: vcpkg-${{ runner.os }}-${{ hashFiles('**/vcpkg.json') }}
path: build/vcpkg_installed
save-always: true
- name: Build Docker image
run: docker build -t kdeck-build .
# NOTE: We use a bind-mount instead of a volume for the build dir
# because the runner user will not have permission to access
# an (automatically created) anonymous volume.
- name: Run build in Docker container
run: |
docker run \
-v "${{ github.workspace }}/build:/src/build" \
kdeck-build
- name: Record hash
run: echo ${{ github.sha }} > release.txt
- name: Create tarball
run: |
tar -czvf "kdeck-Linux64-${{ github.ref_name }}.tar.gz" \
--directory="${{ github.workspace }}" \
release.txt \
LICENSE.md \
--directory="${{ github.workspace }}/build/bin/Linux64/Release" \
kdeck
- name: Release
uses: softprops/action-gh-release@v2
with:
prerelease: true
fail_on_unmatched_files: true
files: |
kdeck-Linux64-${{ github.ref_name }}.tar.gz