-
Notifications
You must be signed in to change notification settings - Fork 162
79 lines (64 loc) · 1.85 KB
/
Copy pathstable-check.yml
File metadata and controls
79 lines (64 loc) · 1.85 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: stable-check
on:
push:
branches:
- main
pull_request:
merge_group:
env:
MOONC_RC_CONVENTION: borrow
jobs:
stable-check:
strategy:
matrix:
os: ["ubuntu-latest","macos-latest", "windows-latest"]
fail-fast: false
runs-on: ${{ matrix.os }}
continue-on-error: false
steps:
- uses: actions/checkout@v4
- name: install
uses: ./.github/actions/setup
- name: check
timeout-minutes: 10
run: moon check --deny-warn --target all
- name: moon info
timeout-minutes: 10
run: |
moon info --target wasm,wasm-gc,js,native
git diff --exit-code
- name: format diff
timeout-minutes: 10
run: |
moon fmt
git diff --exit-code
- name: run tests
timeout-minutes: 20
uses: ./.github/actions/test
- name: moon bundle
run: moon bundle --all
- name: check core size
timeout-minutes: 10
if: ${{ matrix.os != 'windows-latest' }}
run: find ./target -name '*.core' | xargs ls -lh
- name: check core size on windows
timeout-minutes: 10
if: ${{ matrix.os == 'windows-latest' }}
run: Get-ChildItem -Path ".\target" -Recurse -Filter "*.core" | ForEach-Object { "{0} ({1} bytes)" -f $_.FullName, $_.Length }
stable-native-opt-test:
strategy:
matrix:
os: ["ubuntu-latest","macos-latest", "windows-latest"]
fail-fast: false
runs-on: ${{ matrix.os }}
continue-on-error: false
steps:
- uses: actions/checkout@v4
- name: install
uses: ./.github/actions/setup
- name: check
timeout-minutes: 10
run: moon check --target native --deny-warn
- name: run native release tests
timeout-minutes: 10
uses: ./.github/actions/test-native-release