integration test: attach a test directory to test file system #11
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**/*.md' | |
pull_request: | |
paths-ignore: | |
- '**/*.md' | |
jobs: | |
run-integration-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout mewz | |
uses: actions/checkout@v3 | |
with: | |
repository: mewz-project/mewz | |
submodules: true | |
- name: Install Zig | |
uses: goto-bus-stop/setup-zig@v2 | |
with: | |
version: 0.12.0-dev.926+3be8490d8 | |
cache: true | |
- name: Install packages for running tests | |
uses: awalsh128/[email protected] | |
with: | |
packages: qemu-system mtools | |
- name: Cache mewz | |
uses: actions/cache@v2 | |
with: | |
path: | |
zig-cache | |
key: ${{ runner.os }}-mewz | |
- name: Cache Newlib | |
uses: actions/cache@v2 | |
with: | |
path: | |
build/newlib | |
key: ${{ runner.os }}-mewz-newlib | |
- name: Cache lwIP | |
uses: actions/cache@v2 | |
with: | |
path: | |
build/lwip | |
key: ${{ runner.os }}-mewz-lwip | |
- name: Build Mewz | |
run: zig build -Dtest=true -Doptimize=ReleaseFast | |
- name: Run tests | |
run: | | |
zig build -Dtest=true -Doptimize=ReleaseFast run |