Cross platform Test #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cross platform Test | |
on: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout 🛎 | |
uses: actions/checkout@v4 | |
- name: Cache Cargo dependencies 📦 | |
uses: Swatinem/rust-cache@v2 | |
- name: Test 🧪 | |
if: matrix.os != 'windows-latest' | |
run: cargo test | |
- name: Build 🔧 | |
run: cargo build --release | |
- name: Add paths 📂 | |
if: matrix.os != 'windows-latest' | |
run: echo "::add-path::$GITHUB_WORKSPACE/target/release" | |
- name: Build site 🏗️ | |
if: matrix.os != 'windows-latest' | |
run: marmite example site -vvvv | |
- name: Build site 🏗️ | |
if: matrix.os == 'windows-latest' | |
run: .\target\release\marmite.exe example site -vvvv | |
- name: List files on site 📂 | |
if: matrix.os != 'windows-latest' | |
run: ls -R site | |
- name: List files on site 📂 | |
if: matrix.os == 'windows-latest' | |
run: dir site |