build using custom docker image #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create a new release | |
on: | |
push: | |
branches: | |
- fix/static_build | |
jobs: | |
test-release: | |
name: Build for Linux | |
runs-on: ubuntu-latest | |
env: | |
CARGO_TERM_COLOR: always | |
steps: | |
- uses: actions/checkout@main | |
- name: Build-musl | |
run: | | |
echo "Building static binaries using ekidd/rust-musl-builder" | |
docker build -t fastn-build-image . | |
docker run -it --name fastn-build fastn-build-image | |
mkdir -p out | |
docker cp fastn-build:/home/rust/src/target/x86_64-unknown-linux-musl/release/fastn out/ | |
- name: ls files | |
run: | | |
ls target/ | |
ls out/ | |
file out/fastn |