Skip to content

Commit

Permalink
workflow fix attempt#1
Browse files Browse the repository at this point in the history
  • Loading branch information
rumbleFTW committed Dec 26, 2023
1 parent 4569934 commit 63f9df5
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,30 @@ name: Rust

on:
push:
branches: [ "master" ]
branches: ["master"]
pull_request:
branches: [ "master" ]
branches: ["master"]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Run tests
run: cargo test --verbose
- uses: actions/checkout@v3

- name: Install libtorch
run: |
# Add your libtorch installation commands here
# For example, you might download and extract the libtorch archive
wget https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.0.0%2Bcpu.zip
unzip libtorch-cxx11-abi-shared-with-deps-2.0.0+cpu.zip && rm libtorch-cxx11-abi-shared-with-deps-2.0.0+cpu.zip
export LIBTORCH=$(pwd)/libtorch
export LD_LIBRARY_PATH=$(pwd)/libtorch/lib:$LD_LIBRARY_PATH
- name: Build and test Rust project
run: |
cargo build --release
cargo test

0 comments on commit 63f9df5

Please sign in to comment.