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 2372656
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ 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
Expand All @@ -24,4 +24,4 @@ jobs:
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 -k firmware

firmware:
cat mime/* > firmware

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

0 comments on commit 2372656

Please sign in to comment.