Skip to content

Commit

Permalink
Add workflow for building statically linked binary
Browse files Browse the repository at this point in the history
  • Loading branch information
d-e-s-o committed Jul 31, 2023
1 parent bb35252 commit 949a353
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build

on:
workflow_dispatch:

jobs:
build:
name: Build statically linked binary
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get install musl-tools
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
target: x86_64-unknown-linux-musl
- run: |
cargo install --path=cli --root=. --target x86_64-unknown-linux-musl
strip bin/blazecli
- uses: actions/upload-artifact@v3
with:
name: blazecli
path: bin/blazecli

0 comments on commit 949a353

Please sign in to comment.