Skip to content

Commit

Permalink
don't cross compile
Browse files Browse the repository at this point in the history
  • Loading branch information
jordy25519 committed Sep 25, 2024
1 parent 614a87a commit 887f9f4
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,41 @@ on:
- "**.lock"
- ".github/workflows/*.yml"

env:
CI_TOOLCHAIN: "1.76.0-x86_64-unknown-linux-gnu"

jobs:
publish:
publish-linux:
runs-on: ubuntu-latest
timeout-minutes: 45
timeout-minutes: 15
steps:
- name: Check out
uses: actions/checkout@v2
- name: Install ffi toolchain (1.76.0)
run: |
rustup install $CI_TOOLCHAIN
rustup target add x86_64-apple-darwin --toolchain $CI_TOOLCHAIN
rustup default $CI_TOOLCHAIN
rustup install 1.76.0-x86_64-unknown-linux-gnu
rustup default 1.76.0-x86_64-unknown-linux-gnu
- name: Build Linux
run: |
cargo build
- uses: actions/upload-artifact@v4
with:
path: "target/debug/libdrift_ffi_sys.so"
name: libdrift_ffi_sys.so
publish-mac:
runs-on: macos-latest
timeout-minutes: 15
steps:
- name: Check out
uses: actions/checkout@v2
- name: Install ffi toolchain (1.76.0)
run: |
rustup install 1.76.0-x86_64-apple-darwin
rustup default 1.76.0-x86_64-apple-darwin
- name: Build Linux
run: |
cargo build
- name: Build Mac
run: |
cargo build --target x86_64-apple-darwin
cargo build
- uses: actions/upload-artifact@v4
with:
path: "target/x86_64-apple-darwin/debug/libdrift_ffi_sys.dylib"
path: "target/debug/libdrift_ffi_sys.dylib"
name: libdrift_ffi_sys.dylib

0 comments on commit 887f9f4

Please sign in to comment.