Skip to content

Commit 7834e4e

Browse files
committed
update following rusty_mujoco
1 parent fc022da commit 7834e4e

File tree

3 files changed

+40
-5
lines changed

3 files changed

+40
-5
lines changed

.github/workflows/AutoApprove.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# will be removed when this project has more than one maintainers
2+
3+
name: AutoApprove
4+
5+
on:
6+
pull_request:
7+
types: [opened, reopened, synchronize, ready_for_review]
8+
9+
jobs:
10+
approve:
11+
if: |
12+
github.event.pull_request.user.login == 'kanarus' &&
13+
!github.event.pull_request.draft
14+
runs-on: ubuntu-latest
15+
permissions:
16+
pull-requests: write
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: approve
20+
env:
21+
GH_TOKEN: ${{ github.token }}
22+
run: |
23+
gh pr review ${{ github.event.number }} --approve

.github/workflows/CI.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches: [main, v*]
77

88
jobs:
9-
CI:
9+
build:
1010
runs-on: ubuntu-latest
1111

1212
strategy:
@@ -16,6 +16,18 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818

19-
- run: rustup update && rustup default ${{ matrix.toolchain }}
20-
21-
- run: cargo test
19+
- run: |
20+
rustup update
21+
rustup default ${{ matrix.toolchain }}
22+
rustup component add rustfmt ### required for rusty_mujoco to build ###
23+
24+
- name: install mujoco and set MUJOCO_DIR
25+
run: |
26+
mkdir -p $HOME/.mujoco
27+
cd $HOME/.mujoco
28+
wget https://github.com/google-deepmind/mujoco/releases/download/3.3.2/mujoco-3.3.2-linux-x86_64.tar.gz
29+
tar -xzf mujoco-3.3.2-linux-x86_64.tar.gz
30+
echo "MUJOCO_DIR=$HOME/.mujoco/mujoco-3.3.2" >> $GITHUB_ENV
31+
echo "LD_LIBRARY_PATH=$HOME/.mujoco/mujoco-3.3.2/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV
32+
33+
- run: cargo build

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ keywords = ["mujoco", "rl", "ml", "physics", "robotics"]
1313
categories = ["science::robotics", "simulation"]
1414

1515
[dependencies]
16-
rusty_mujoco = { path = "../rusty_mujoco" }
16+
rusty_mujoco = { path = "../rusty_mujoco", version = "0.0.1" }

0 commit comments

Comments
 (0)