-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (39 loc) · 1.17 KB
/
release-dry-run.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Release Dry Run
# Run once a week on Monday at midnight.
on:
schedule:
- cron: "0 0 * * 1"
permissions:
contents: read
env:
RUSTFLAGS: -Dwarnings
CARGO_TERM_COLOR: always
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
name: "Test (${{ matrix.os }})"
runs-on: ${{ matrix.os }}
timeout-minutes: 15
steps:
# Get the repo, get Rust, get `cargo-nextest`, setup caching.
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@nextest
- uses: swatinem/rust-cache@v2
with:
key: ${{ matrix.os }}
# Install the protobuf compiler
- if: runner.os == 'Linux'
run: sudo apt-get install -y protobuf-compiler
- if: runner.os == 'macOS'
run: brew install protobuf
- if: runner.os == 'Windows'
run: choco install protoc
# Print dependency info (useful for debugging)
- name: Dependency Tree
run: cargo tree
# Try building as-if for publishing a new version.
- name: Publish
run: cargo publish --dry-run --allow-dirty --verbose -p hipcheck