-
-
Notifications
You must be signed in to change notification settings - Fork 46
56 lines (49 loc) · 1.67 KB
/
examples.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
52
53
54
55
56
name: Examples
on:
push:
branches: [main]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
run-examples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build Ezno
run: cargo build --release
env:
CARGO_PROFILE_RELEASE_DEBUG: true
- name: Run checker on example files
shell: bash
continue-on-error: true
run: |
files=(
https://jsr.io/@yossydev/hello-world/1.0.0/index.ts
https://jsr.io/@bengineering/shuffle-binary/0.0.1/index.ts
https://jsr.io/@bengineering/mulberry32/0.0.1/mod.ts
https://jsr.io/@luca/cases/1.0.0/mod.ts
https://jsr.io/@std/assert/1.0.2/assertion_error.ts
https://jsr.io/@std/text/1.0.3/levenshtein_distance.ts
https://jsr.io/@gnome/monads/0.0.0/src/option.ts
https://raw.githubusercontent.com/getify/deePool/master/src/deePool.js
https://raw.githubusercontent.com/silen-z/fiveway/main/packages/fiveway/src/id.ts
)
for url in "${files[@]}"; do
header="--- $url ---"
echo $header
curl -s $url > temp.ts
./target/release/ezno check temp.ts --timings || true
echo "${header//?/-}"
echo ""
done