Skip to content

Commit

Permalink
Added build
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecardleitao committed Feb 29, 2024
1 parent 454a89a commit ee148fd
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,31 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: Run etl
run: cargo run --features="build-binary" --bin etl_private_jets

build-and-publish-binaries:
permissions: write-all
name: Publish binaries (${{ matrix.target }})
needs: [run]
if: github.event_name == 'release'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-pc-windows-gnu
archive: zip
- target: x86_64-unknown-linux-musl
archive: tar.gz tar.xz tar.zst
- target: x86_64-apple-darwin
archive: zip
steps:
- uses: actions/checkout@v3
- name: Compile and release
uses: rust-build/rust-build.action@v1.4.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
RUSTTARGET: ${{ matrix.target }}
ARCHIVE_TYPES: ${{ matrix.archive }}
EXTRA_COMMAND_FLAGS: --features="build-binary"

0 comments on commit ee148fd

Please sign in to comment.