From b8bf0d46dd25bb98c5c46fd92078ffc4df807c6e Mon Sep 17 00:00:00 2001 From: kailando <94944679+kailando@users.noreply.github.com> Date: Tue, 19 Aug 2025 18:55:26 +0000 Subject: [PATCH 1/2] Issue https://github.com/ajyoon/systemf/issues/8: Add rel --- .github/workflows/release.yml | 90 +++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..fb2f2ec --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,90 @@ +name: Build and Release Binaries + +on: + push: + tags: + - 'v*.*.*' + workflow_dispatch: + +jobs: + build-ubuntu: + name: Build on Ubuntu + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install build dependencies + run: sudo apt-get update && sudo apt-get install -y make nasm + + - name: Build project + run: make clean build + + - name: Archive binaries + run: | + mkdir -p dist + cp -r bin dist/ + tar -czvf systemf-${{ github.ref_name }}-ubuntu.tar.gz -C dist bin + + - name: Upload Release Asset (Ubuntu) + uses: softprops/action-gh-release@v2 + with: + files: systemf-${{ github.ref_name }}-ubuntu.tar.gz + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + build-debian: + name: Build on Debian (Docker) + runs-on: ubuntu-latest + container: + image: debian:stable-slim + steps: + - name: Install git, make, nasm + run: apt-get update && apt-get install -y git make nasm + + - name: Checkout code + uses: actions/checkout@v4 + + - name: Build project + run: make clean build + + - name: Archive binaries + run: | + mkdir -p dist + cp -r bin dist/ + tar -czvf systemf-${{ github.ref_name }}-debian.tar.gz -C dist bin + + - name: Upload Release Asset (Debian) + uses: softprops/action-gh-release@v2 + with: + files: systemf-${{ github.ref_name }}-debian.tar.gz + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + build-arch: + name: Build on Arch/Manjaro (Docker) + runs-on: ubuntu-latest + container: + image: archlinux:base + steps: + - name: Install git, make, nasm + run: pacman -Sy --noconfirm git make nasm + + - name: Checkout code + uses: actions/checkout@v4 + + - name: Build project + run: make clean build + + - name: Archive binaries + run: | + mkdir -p dist + cp -r bin dist/ + tar -czvf systemf-${{ github.ref_name }}-arch.tar.gz -C dist bin + + - name: Upload Release Asset (Arch/Manjaro) + uses: softprops/action-gh-release@v2 + with: + files: systemf-${{ github.ref_name }}-arch.tar.gz + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 95237989e2e3dce35d942d1c437ece003fb57ad9 Mon Sep 17 00:00:00 2001 From: kailando <94944679+kailando@users.noreply.github.com> Date: Tue, 19 Aug 2025 18:59:41 +0000 Subject: [PATCH 2/2] fix: update installation step description for Debian build --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fb2f2ec..0aa64e8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,7 +39,7 @@ jobs: container: image: debian:stable-slim steps: - - name: Install git, make, nasm + - name: Install git, make and nasm run: apt-get update && apt-get install -y git make nasm - name: Checkout code