Skip to content

Commit

Permalink
Feat: Adding rust dependencies to yml
Browse files Browse the repository at this point in the history
  • Loading branch information
henriqueaklein committed Jan 22, 2024
1 parent a0313cc commit 7819441
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/Android-cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ jobs:
curl -o ndk.zip ${{ env.NDK_URL }}
unzip ndk.zip
rm ndk.zip
- name: Install Rust dependencies
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup update
rustup toolchain install stable
rustup default stable
rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android i686-linux-androidd
cargo install cbindgen
- name: Create Build Directory
run: cmake -E make_directory ${{github.workspace}}/.build
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/Linux-cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ jobs:
with:
submodules: 'recursive'

- name: Install Rust dependencies
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup update
rustup toolchain install stable
rustup default stable
rustup target add x86_64-unknown-linux-gnu
rustup target add wasm32-unknown-emscripten
cargo install cbindgen
- name: Create Build Directory
run: |
mkdir -p ${{github.workspace}}/Linux/build/Release/
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/OSX-cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ jobs:
sudo xcode-select --switch "$(find /Applications -mindepth 1 -maxdepth 1 ! -type l | grep "Xcode_[\.0-9]*app" | sort -V | tail -1)/Contents/Developer"
sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*
- name: Install Rust dependencies
run: |
rustup update
rustup toolchain install stable
rustup default stable
rustup target add x86_64-apple-darwin
rustup target add aarch64-apple-darwin
rustup component add rust-src --toolchain nightly-x86_64-apple-darwin
rustup target add wasm32-unknown-emscripten
cargo install cbindgen cargo-lipo
- name: Create Build Directory
run: |
cmake -E make_directory ${{github.workspace}}/.build
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/Windows-cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ jobs:
uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64
- name: Install Rust dependencies
run: |
rustup update
rustup toolchain install stable
rustup default stable
rustup set default-host x86_64-pc-windows-msvc
rustup target add x86_64-pc-windows-msvc
rustup target add wasm32-unknown-emscripten
cargo install cbindgen
- name: Create Build Directory
run: cmake -E make_directory ${{github.workspace}}/.build
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/iOS-cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ jobs:
with:
python-version: '3.5' # Version range or exact version of a Python version to use, using SemVer's version range syntax

- name: Install Rust dependencies
run: |
rustup update
rustup toolchain install stable
rustup default stable
rustup toolchain install stable-x86_64-apple-darwin
rustup target add x86_64-apple-ios aarch64-apple-ios-sim aarch64-apple-ios
cargo install cbindgen cargo-lipo
- name: Create Build Directory
run: cmake -E make_directory ${{github.workspace}}/.build

Expand Down

0 comments on commit 7819441

Please sign in to comment.