From b7e9b061a81efed0cedaf5399cfc7001fe86a28b Mon Sep 17 00:00:00 2001 From: siddhantCodes Date: Tue, 2 Jan 2024 16:28:10 +0530 Subject: [PATCH] test run CI on mac --- .github/workflows/static_build.yml | 48 +++++++++++++++++++----------- 1 file changed, 31 insertions(+), 17 deletions(-) diff --git a/.github/workflows/static_build.yml b/.github/workflows/static_build.yml index 2104d912dc..5cf6dfa5c0 100644 --- a/.github/workflows/static_build.yml +++ b/.github/workflows/static_build.yml @@ -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