Skip to content

Commit

Permalink
Update GitHub workflows.
Browse files Browse the repository at this point in the history
1. Build the example as part of CI.

2. Fix the features used in the publish workflow.
  • Loading branch information
brotskydotcom committed Jul 6, 2024
1 parent 05dcc6b commit e1e0002
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
- name: Build and Test
run: cargo test --features=apple-native,windows-native,linux-native --verbose

- name: Build the CLI release
run: cargo build --release --features=apple-native,windows-native,linux-native --example cli

ci_secret_service:
runs-on: ubuntu-latest
strategy:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
os: [ macos-latest, ubuntu-latest, windows-latest ]
include:
- os: windows-latest
executable_name: examples/cli.exe
Expand All @@ -27,13 +27,13 @@ jobs:
- name: Fetch head
uses: actions/checkout@v4

- name: Install Rust Toolchain (stable)
uses: dtolnay/rust-toolchain@stable
- name: Install rust stable
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt, clippy
toolchain: stable

- name: Build (release, locked)
run: cargo build --release --example cli
- name: Build
run: cargo build --release --features=apple-native,windows-native,linux-native --example cli

- name: Post cli executable
uses: svenstaro/upload-release-action@v2
Expand Down

0 comments on commit e1e0002

Please sign in to comment.