Skip to content

GitHub Actions for binary release #871

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 86 additions & 0 deletions .github/workflows/rust-release-binary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: Release Build

on:
push:
tags:
- 'v*'
jobs:
release:
name: Release - ${{ matrix.platform.os-name }}
strategy:
matrix:
platform:
- os-name: Linux-x86_64
runs-on: ubuntu-24.04
target: x86_64-unknown-linux-gnu

- os-name: Linux-aarch64
runs-on: ubuntu-24.04-arm
target: aarch64-unknown-linux-gnu

- os-name: macOS-x86_64
runs-on: macOS-latest
target: x86_64-apple-darwin

- os-name: macOS-aarch64
runs-on: macOS-latest
target: aarch64-apple-darwin

- os-name: Windows-x86_64
runs-on: windows-latest
target: x86_64-pc-windows-msvc

- os-name: Windows-aarch64
runs-on: windows-11-arm
target: aarch64-pc-windows-msvc

runs-on: ${{ matrix.platform.runs-on }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Update CHANGELOG
if: startsWith(github.ref, 'refs/tags/')
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
writeToFile: true
changelogFilePath: "CHANGELOG.md"

- name: Build binary
uses: houseabsolute/actions-rust-cross@v1
with:
command: build
target: ${{ matrix.platform.target }}
args: "--locked --release"
strip: true

- name: Publish artifacts and release
if: startsWith(github.ref, 'refs/tags/')
uses: houseabsolute/actions-rust-release@v0
with:
executable-name: binwalk
target: ${{ matrix.platform.target }}
release-tag-prefix: v
changes-file: "CHANGELOG.md"
action-gh-release-parameters: |
{
"draft": false,
"prerelease": false,
"overwrite": true,
"generate_release_notes": true,
"make_latest": true,
"body_path": "CHANGELOG.md",
"token": "${{ secrets.GITHUB_TOKEN }}"
}

- name: Commit CHANGELOG.md
if: startsWith(github.ref, 'refs/tags/') && matrix.platform.os-name == 'Linux-x86_64'
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: master
commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]'
file_pattern: CHANGELOG.md

19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

## [v3.1.1] - 2025-05-28
### :sparkles: New Features
- [`e1225f4`](https://github.com/ReFirmLabs/binwalk/commit/e1225f419666b24fda8adb44d63551d91b28663d) - Add support for ARJ archives *(commit by [@theguy147](https://github.com/theguy147))*
- [`eeaa577`](https://github.com/ReFirmLabs/binwalk/commit/eeaa577896f0aa8b79f1e41de2a2f0321dc8daec) - Add more elf_machines *(commit by [@theguy147](https://github.com/theguy147))*
- [`b1dd6c7`](https://github.com/ReFirmLabs/binwalk/commit/b1dd6c75852be51efcbe6dda8fc1b42b32a929f1) - Add 'no file type' to elf_types *(commit by [@theguy147](https://github.com/theguy147))*
- [`0068c8a`](https://github.com/ReFirmLabs/binwalk/commit/0068c8a8fb5e04bade99b0540f2a602fa4cc20a4) - Extend elf_osabi map *(commit by [@theguy147](https://github.com/theguy147))*
- [`6dfa9cf`](https://github.com/ReFirmLabs/binwalk/commit/6dfa9cf4d907931585fa60d91bde7fc5dbd16c1a) - Allow unknown ELF machine types *(commit by [@theguy147](https://github.com/theguy147))*
- [`b65242a`](https://github.com/ReFirmLabs/binwalk/commit/b65242aa348b2eba8251ca2b22f002081db93721) - Add more PEM signatures *(commit by [@theguy147](https://github.com/theguy147))*
- [`9bcaa60`](https://github.com/ReFirmLabs/binwalk/commit/9bcaa607236f03309021bdc823a8755749c2bc91) - Add support for QEMU QCOW images *(commit by [@theguy147](https://github.com/theguy147))*

### :recycle: Refactors
- [`8a9f4b8`](https://github.com/ReFirmLabs/binwalk/commit/8a9f4b850ee317fe26b80164bba813f088029f26) - replace &String with &str to enhance generality *(commit by [@Integral-Tech](https://github.com/Integral-Tech))*

### :white_check_mark: Tests
- [`c24c501`](https://github.com/ReFirmLabs/binwalk/commit/c24c5010cf65e5ca4f27db8dcc5a38e0a7f638b2) - Add integration test for ARJ archive *(commit by [@theguy147](https://github.com/theguy147))*
- [`475b5fa`](https://github.com/ReFirmLabs/binwalk/commit/475b5fa85bf30454cf706f6b06a0f08201018afe) - Add integration test for QEMU QCOW image *(commit by [@theguy147](https://github.com/theguy147))*

[v3.1.1]: https://github.com/ReFirmLabs/binwalk/compare/v3.1.0...v3.1.1
Loading