Skip to content

Commit

Permalink
chore: macos workflow test
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorfdl committed Jun 17, 2024
1 parent fa55171 commit 7993e3e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/build-macos-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Cache cargo
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Install Rust toolchain and components
uses: actions-rs/toolchain@v1
with:
Expand All @@ -28,8 +38,11 @@ jobs:
run: touch .env

# Build the modules
- name: Build
run: cargo build --verbose --release
- name: Release build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features --verbose

# Run tests
- name: Run tests
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ jobs:
- name: Create empty .env file
run: touch .env

- name: Build
run: cargo build --verbose
# Build the modules
- name: Release build
uses: actions-rs/cargo@v1
with:
command: build
args: --verbose

- name: Test
run: cargo test --verbose
Expand Down

0 comments on commit 7993e3e

Please sign in to comment.