Skip to content

Commit

Permalink
Add sync-lockfile-and-toolchain action (#115)
Browse files Browse the repository at this point in the history
* Add sync-lockfile-and-toolchain action

* Switch from `rust-toolchain` to `rust-toolchain.toml`
  • Loading branch information
fuzzypixelz authored Dec 5, 2023
1 parent 144646d commit 53e0949
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
override: true
components: rustfmt, clippy
run: rustup component add rustfmt clippy

- name: Build zenoh-python
uses: messense/maturin-action@v1
Expand Down
18 changes: 3 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
default: true
run: rustup show
- name: Build wheels - x86_64
uses: messense/maturin-action@v1
with:
Expand All @@ -42,11 +38,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
default: true
run: rustup show
- name: Build wheels
uses: messense/maturin-action@v1
with:
Expand Down Expand Up @@ -82,11 +74,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
target: arm-unknown-linux-gnueabihf
default: true
run: rustup show
- name: install cross toolchain
run: |
brew tap messense/macos-cross-toolchains
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/sync-lockfile-and-toolchain.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: sync-lockfile-and-toolchain
run-name: Sync lockfile and toolchain with Zenoh's
on:
schedule:
- cron: "0 0 * * *" # At the end of every day
workflow_dispatch:
jobs:
sync-lockfile-and-toolchain:
runs-on: ubuntu-latest
steps:
- name: Sync lockfile and toolchain
uses: ZettaScaleLabs/zenoh-sync-lockfile-and-toolchain@main
with:
token: ${{ secrets.PAT }}
1 change: 0 additions & 1 deletion rust-toolchain

This file was deleted.

2 changes: 2 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[toolchain]
channel = "1.72.0"

0 comments on commit 53e0949

Please sign in to comment.