Skip to content

Commit

Permalink
test run CI on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhantk232 committed Jan 2, 2024
1 parent c1a1c29 commit b7e9b06
Showing 1 changed file with 31 additions and 17 deletions.
48 changes: 31 additions & 17 deletions .github/workflows/static_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,36 @@ on:
branches:
- fix/static_build
jobs:
test-release:
name: Build for Linux
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
# 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 -f .github/Dockerfile .
# docker run --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 out/
# file out/fastn
test-release-macos:
name: Build for MacOS
runs-on: macos-latest
steps:
- uses: actions/checkout@main
- name: Build-musl
run: |
echo "Building static binaries using ekidd/rust-musl-builder"
docker build -t fastn-build-image -f .github/Dockerfile .
docker run --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
- uses: actions-rs/toolchain@v1
- name: Run Build
id: build-macos
continue-on-error: false
uses: actions-rs/cargo@v1
with:
command: build
args: --release --features=auth
- name: run fastn
run: ./target/release/fastn --version

0 comments on commit b7e9b06

Please sign in to comment.