Skip to content

Commit

Permalink
Remove actions-rs from release CI workflow
Browse files Browse the repository at this point in the history
actions-rs is now unmaintained.
  • Loading branch information
hsaunders1904 committed Nov 19, 2023
1 parent b31fb4e commit 7851fa7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 32 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: git-branch-selector CI

permissions: read-all
on:
pull_request:
push:
Expand All @@ -11,25 +11,21 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@cargo-tarpaulin

- name: Static Analysis
run: |
pip install pre-commit
pre-commit install
pre-commit run --all-files
- uses: actions-rs/toolchain@v1.0.6
with:
toolchain: stable

- name: Run cargo-tarpaulin
uses: actions-rs/tarpaulin@v0.1
- name: Run tests
env:
CLICOLOR_FORCE: 1
with:
version: '0.15.0'
run: |
cargo tarpaulin
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
Expand Down
31 changes: 10 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,12 @@ jobs:
- { os: macos-latest, target: x86_64-apple-darwin }
- { os: macos-latest, target: aarch64-apple-darwin }
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: ${{ matrix.job.target }}
- uses: taiki-e/install-action@cross

- name: Get version
id: get-version
Expand All @@ -52,20 +56,8 @@ jobs:
version="$(./tools/package/version)"
echo "version=${version}" >> $GITHUB_OUTPUT
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1.0.6
with:
toolchain: stable
target: ${{ matrix.job.target }}
override: true
profile: minimal

- name: Build
uses: actions-rs/cargo@v1.0.1
with:
use-cross: true
command: build
args: --locked --release --target=${{ matrix.job.target }}
run: cross build --locked --release --target=${{ matrix.job.target }}

- name: Make deb package
if: startsWith(matrix.job.os, 'ubuntu')
Expand Down Expand Up @@ -116,8 +108,8 @@ jobs:
runs-on: windows-latest
needs: release
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: actions/checkout@v3

- name: Get version
id: get-version
Expand All @@ -127,10 +119,7 @@ jobs:
echo "version=${version}" >> $env:GITHUB_OUTPUT
- name: Build
uses: actions-rs/cargo@v1.0.1
with:
command: build
args: --locked --release
run: cargo build --locked --release

- name: Make zip package
run: |
Expand Down

0 comments on commit 7851fa7

Please sign in to comment.