-
-
Notifications
You must be signed in to change notification settings - Fork 27
51 lines (39 loc) · 1.22 KB
/
cross.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
47
48
49
50
51
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