Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-jerry-ye committed Jun 19, 2024
1 parent 5aba030 commit 5bb87c2
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: check examples

on:
push:
branches:
- main
pull_request:
paths:
- examples
Expand All @@ -15,12 +13,6 @@ jobs:
strategy:
matrix:
os:
- name: ubuntu-latest
path: ubuntu_x86_64
- name: macos-latest
path: mac_intel
- name: macos-14
path: mac_m1
- name: windows-latest
backend: [wasm, wasm-gc, js]
runs-on: ${{ matrix.os.name }}
Expand Down Expand Up @@ -81,7 +73,8 @@ jobs:
Get-ChildItem -Path ".\examples" -Directory | ForEach-Object {
Write-Output "Processing $($_.FullName)"
Set-Location $_.FullName
if (!(moon install) -or !(moon check --target ${{ matrix.backend }}) -or !(moon test --target ${{ matrix.backend }})) {
moon install && moon check --target ${{ matrix.backend }} && moon test --target ${{ matrix.backend }}
if ($? -ne 0) {
Write-Output "Failed in $($_.FullName)"
$failed_directories += $_.FullName
}
Expand Down

0 comments on commit 5bb87c2

Please sign in to comment.