Skip to content

Commit

Permalink
[CI] macos testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarzik committed Feb 24, 2024
1 parent b1b2574 commit 618505b
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 24 deletions.
31 changes: 28 additions & 3 deletions .github/workflows/TestingCI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,35 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install deps
run: sudo apt-get -y install protobuf-compiler
- name: Build
run: cargo build --verbose
run: cargo build --release --verbose
- name: Run tests
run: cargo test --verbose
run: cargo test --release --verbose

macos-homebrew:

runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: sfackler/actions/rustup@master
- run: echo "version=$(rustc --version)" >> $GITHUB_OUTPUT
id: rust-version
- uses: actions/cache@v4
with:
path: ~/.cargo/registry/index
key: index-${{ runner.os }}-${{ github.run_number }}
restore-keys: |
index-${{ runner.os }}-
- run: cargo generate-lockfile
- uses: actions/cache@v4
with:
path: ~/.cargo/registry/cache
key: registry-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
- run: brew install protobuf
- run: cargo fetch
- run: cargo build --release --verbose
- run: cargo run --release --verbose

40 changes: 20 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ fn main() {
assert_eq!(in_resp.address, out_resp.address);
assert_eq!(in_resp.city, out_resp.city);
assert_eq!(in_resp.zipcode, out_resp.zipcode);
}
}

0 comments on commit 618505b

Please sign in to comment.