Skip to content

Commit

Permalink
Fix harder
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed Mar 2, 2023
1 parent 1219a84 commit 76d6a10
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ jobs:
target: x86_64-apple-darwin
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
env:
TARGET_CXX: "${{ matrix.target == 'aarch64-unknown-linux-gnu' && 'g++' || 'clang++' }}"
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -63,9 +65,9 @@ jobs:
- uses: Swatinem/rust-cache@v2
- run: cargo fetch --target ${{ matrix.target }}
- name: test - no features
run: cargo test --exclude pxbind
run: cargo test --workspace --exclude pxbind
- name: test - all features
run: cargo test --all-features --exclude pxbind
run: cargo test --all-features --workspace --exclude pxbind
- name: ball all features
run: cargo run --example ball --all-features
- name: ball no features
Expand Down Expand Up @@ -95,10 +97,7 @@ jobs:

package:
name: Package
strategy:
matrix:
os: [ubuntu-22.04, windows-2022, macOS-12]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -118,7 +117,15 @@ jobs:
with:
target: aarch64-linux-android
- uses: Swatinem/rust-cache@v2
- run: cargo install xbuild
- name: Install xbuild
env:
X_VERSION: "0.2.0"
run: |
bin="$(dirname $(which cargo))/x"
curl -o "$bin" -L https://github.com/rust-mobile/xbuild/releases/download/v${X_VERSION}/xbuild-linux-x64
chmod +x "$bin"
# Need to have llvm-ar, but I'm to lazy to see if I can just create a symlink instead
sudo apt-get update && sudo apt-get install llvm -y
- run: cargo fetch
- name: build - no features
run: x build --platform android --arch arm64 --release -p physx

0 comments on commit 76d6a10

Please sign in to comment.