Skip to content

Commit

Permalink
Remove remaining GitHub actions FIXMEs.
Browse files Browse the repository at this point in the history
  • Loading branch information
azriel91 committed Jun 27, 2023
1 parent ec5c34e commit 6eed661
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 31 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,7 @@ jobs:
toolchain: nightly
components: clippy

- # FIXME: Switch back when actions-rs/cargo#217 gets merged
uses: r3-os/actions-rust-cargo@fb222fe18dc90e381546d012f9e3d6f353f0f627
with:
command: clippy
args: --workspace --all-features -- -D warnings
- run: cargo clippy --workspace --all-features -- -D warnings

coverage:
name: Coverage
Expand Down
43 changes: 17 additions & 26 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,34 +63,25 @@ jobs:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable

- name: workspaces Cache
id: workspaces_cache
- name: cargo-release Cache
id: cargo_release_cache
uses: actions/cache@v3
with:
path: ~/.cargo/bin/cargo-workspaces
key: ${{ runner.os }}-cargo-workspaces
path: ~/.cargo/bin/cargo-release
key: ${{ runner.os }}-cargo-release

- # FIXME: Switch back when actions-rs/cargo#217 gets merged
uses: r3-os/actions-rust-cargo@fb222fe18dc90e381546d012f9e3d6f353f0f627
if: steps.workspaces_cache.outputs.cache-hit != 'true'
with:
command: install
args: cargo-workspaces
- run: cargo install cargo-release
if: steps.cargo_release_cache.outputs.cache-hit != 'true'

- name: cargo login
# FIXME: Switch back when actions-rs/cargo#217 gets merged
uses: r3-os/actions-rust-cargo@fb222fe18dc90e381546d012f9e3d6f353f0f627
with:
command: login
args: ${{ secrets.CRATES_IO_API_TOKEN }}

- # FIXME: Switch back when actions-rs/cargo#217 gets merged
uses: r3-os/actions-rust-cargo@fb222fe18dc90e381546d012f9e3d6f353f0f627
with:
command: workspaces
args: >
publish
--from-git
--allow-branch main
--force '*'
--no-git-tag
run: cargo login ${{ secrets.CRATES_IO_API_TOKEN }}

- name: "cargo release publish"
run: |-
cargo release \
publish \
--workspace \
--all-features \
--allow-branch HEAD \
--no-confirm \
--execute

0 comments on commit 6eed661

Please sign in to comment.