Skip to content

Commit

Permalink
Merge pull request #16 from jgarzik/macos
Browse files Browse the repository at this point in the history
[CI] macos testing
  • Loading branch information
jgarzik authored Feb 24, 2024
2 parents b1b2574 + 618505b commit 6674f3e
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 6674f3e

Please sign in to comment.