Skip to content

Commit

Permalink
feat!: replace binary with compressed source release
Browse files Browse the repository at this point in the history
  • Loading branch information
jstucke committed Aug 29, 2024
1 parent e5c6e7c commit 1400d13
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@ on:

jobs:
release:
# We use Ubuntu 20.04 to have an older version of the file tool.
# If we used a newer Ubuntu it it would complain about incompatible magic
# file format on older Ubuntu versions.
runs-on: ubuntu-20.04
# Compiled magic files are incompatible with older and (for whatever
# reason) also newer versions of `file`.
# Therefore, we only release the concatenated, compressed source file.
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Make
run: sudo apt-get install make
run: sudo apt-get install make xz-utils

- name: Build
run: make all
run: make xz

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: firmware.mgc
files: firmware.xz
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
all: firmware.mgc
all: mgc xz

mgc: firmware.mgc

firmware.mgc: firmware
file -C -m firmware

xz: firmware.xz

firmware.xz: firmware
xz -f -7 firmware

firmware:
cat mime/* > firmware

clean:
rm -f firmware
rm -f firmware.mgc
rm -f firmware.xz

0 comments on commit 1400d13

Please sign in to comment.