Skip to content
Merged
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
52 changes: 50 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ permissions:
contents: write

jobs:
build:
build-linux:
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -55,8 +55,56 @@ jobs:
name: data-breaker-${{ matrix.target }}
path: data-breaker-${{ matrix.target }}

build-macos:
runs-on: macos-latest
strategy:
matrix:
include:
- target: x86_64-apple-darwin
- target: aarch64-apple-darwin

steps:
- uses: actions/checkout@v4

- uses: jdx/mise-action@v2

- name: Add target
run: rustup target add ${{ matrix.target }}

- name: Build
run: cargo build --release --target ${{ matrix.target }}

- name: Strip binary
run: strip target/${{ matrix.target }}/release/data-breaker

- name: Package artifact
run: cp target/${{ matrix.target }}/release/data-breaker data-breaker-${{ matrix.target }}

- uses: actions/upload-artifact@v4
with:
name: data-breaker-${{ matrix.target }}
path: data-breaker-${{ matrix.target }}

build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4

- uses: jdx/mise-action@v2

- name: Build
run: cargo build --release --target x86_64-pc-windows-msvc

- name: Package artifact
run: cp target/x86_64-pc-windows-msvc/release/data-breaker.exe data-breaker-x86_64-pc-windows-msvc.exe

- uses: actions/upload-artifact@v4
with:
name: data-breaker-x86_64-pc-windows-msvc
path: data-breaker-x86_64-pc-windows-msvc.exe

release:
needs: build
needs: [build-linux, build-macos, build-windows]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[![CI](https://github.com/bombfork/data-breaker/actions/workflows/ci.yml/badge.svg)](https://github.com/bombfork/data-breaker/actions/workflows/ci.yml)
[![Release](https://github.com/bombfork/data-breaker/actions/workflows/release.yml/badge.svg)](https://github.com/bombfork/data-breaker/actions/workflows/release.yml)

# data-breaker

**Break what data brokers do.**
Expand Down