-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9765689
commit 8495ff8
Showing
5 changed files
with
45 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|