Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @kanarus
4 changes: 2 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
pull_request:
push:
branches: [main, v*]
branches: ['main', 'v*']

jobs:
build:
Expand All @@ -14,7 +14,7 @@ jobs:
toolchain: [stable, nightly]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- run: |
rustup update
Expand Down
36 changes: 22 additions & 14 deletions .github/workflows/Publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,53 @@ name: Publish

on:
push:
tags: [v*]

permissions:
contents: write
tags: ['v*']

jobs:
publish:
runs-on: ubuntu-latest

environment:
name: publishing

permissions:
contents: write # for creating GitHub Release
id-token: write # for OIDC authentication

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
ref: main
fetch-depth: 0

- run: |

- name: Ensure main branch
run: |
BRANCHS=$(git branch --contains ${{ github.ref_name }})
set -- $BRANCHS
for BRANCH in $BRANCHS ; do
for BRANCH in $BRANCHS; do
if [[ "$BRANCH" == "main" ]]; then
exit 0
fi
done
exit 1
- name: (for compiling to pass) install mujoco and set MUJOCO_DIR

- name: install MuJoCo and set MUJOCO_DIR (for compiling to pass)
run: |
mkdir -p $HOME/.mujoco && cd $HOME/.mujoco
wget https://github.com/google-deepmind/mujoco/releases/download/3.3.2/mujoco-3.3.2-linux-x86_64.tar.gz
tar -xzf mujoco-3.3.2-linux-x86_64.tar.gz
echo "MUJOCO_DIR=$HOME/.mujoco/mujoco-3.3.2" >> $GITHUB_ENV

- name: Publish packages
- uses: rust-lang/crates-io-auth-action@v1
id: cratesio_auth

- name: Trusted Publish to crates.io
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ steps.cratesio_auth.outputs.token }}
run: |
cargo publish -p rusty_mujoco
cargo publish --package rusty_mujoco

- name: Create release
- name: Create GitHub Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand Down