Skip to content

Commit

Permalink
chore: replacing actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasbrendel committed Nov 24, 2023
1 parent 9765689 commit 8495ff8
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 71 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: xmc-rs/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rust-lang/audit@v1
7 changes: 2 additions & 5 deletions .github/workflows/doc-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,9 @@ jobs:
steps:
- uses: actions/[email protected]
- name: Install Toolchain
uses: xmc-rs/toolchain@v1.0.0
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 'stable'
target: 'x86_64-unknown-linux-gnu'
- name: Cargo Doc
uses: xmc-rs/[email protected]
with:
command: doc
args: --verbose --no-deps --document-private-items
run: cargo doc --verbose --no-deps --document-private-items
79 changes: 35 additions & 44 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,35 @@
on:
workflow_dispatch:
inputs:
version:
description: Version to release
required: true
type: string

permissions:
# TODO: once `releases: write` is supported, use it instead.
contents: write

name: Publish

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: xmc-rs/[email protected]
with:
profile: minimal
toolchain: stable
override: true
- uses: xmc-rs/[email protected]
with:
command: install
args: cargo-release
- uses: tibdex/[email protected]
id: generate-token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_SECRET_KEY }}
- uses: oleksiyrudenko/[email protected]
with:
token: ${{ steps.generate-token.outputs.token }}
- uses: Swatinem/[email protected]
- uses: xmc-rs/[email protected]
with:
command: release
args: ${{ inputs.version }} --execute --verbose --no-confirm
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_TOKEN }}
on:
workflow_dispatch:
inputs:
version:
description: Version to release
required: true
type: string

permissions:
# TODO: once `releases: write` is supported, use it instead.
contents: write

name: Publish

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- run: cargo install cargo-release
- uses: tibdex/[email protected]
id: generate-token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_SECRET_KEY }}
- uses: oleksiyrudenko/[email protected]
with:
token: ${{ steps.generate-token.outputs.token }}
- run: cargo release ${{ inputs.version }} --execute --verbose --no-confirm
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_TOKEN }}
13 changes: 3 additions & 10 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,11 @@ jobs:
steps:
- uses: actions/[email protected]
- name: Install toolchain
uses: xmc-rs/toolchain@v1.0.0
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.rust-channel }}
target: ${{ matrix.rust-target }}
override: true
- name: Cargo Check
uses: xmc-rs/[email protected]
with:
command: check
args: --target ${{ matrix.rust-target }}
run: cargo check --target ${{ matrix.rust-target }}
- name: Cargo Build
uses: xmc-rs/[email protected]
with:
command: build
args: --verbose --target ${{ matrix.rust-target }}
run: cargo build --verbose --target ${{ matrix.rust-target }}
13 changes: 4 additions & 9 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: xmc-rs/[email protected]
with:
command: install
args: svd2rust
- uses: xmc-rs/[email protected]
with:
command: install
args: form
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo install svd2rust
- run: cargo install form
- uses: oleksiyrudenko/[email protected]
with:
token: '${{ secrets.GITHUB_TOKEN }}'
- run: |
rm -r src/
svd2rust -i XMC4700.svd
svd2rust -i XMC4200.svd
mkdir src
form -i lib.rs -o src/
cargo fmt
Expand Down

0 comments on commit 8495ff8

Please sign in to comment.