-
Notifications
You must be signed in to change notification settings - Fork 15
133 lines (123 loc) · 4.06 KB
/
Copy pathdeveloper-experience.yml
File metadata and controls
133 lines (123 loc) · 4.06 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
name: Developer Experience
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
RUSTDOCFLAGS: '--deny warnings'
MINIMUM_SUPPORTED_RUST_VERSION: 1.85.0
GOLANG_VERSION: 1.23.3
JS_VERSION: 22
RUST_CHANNEL: stable
on:
schedule:
- cron: "0 0 1 * *"
pull_request:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
try-it:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
persist-credentials: false
- name: Setup JBang
uses: jbangdev/setup-jbang@312c53a4221283f9c8e4aa84d8261b82f0c680fb
- name: Setup JDK
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654
with:
distribution: 'temurin'
java-version: '21'
- name: Run try-it.sh
run: bash docs/try-it.sh
env:
YOZEFU_API_URL: http://localhost:8081/schemas/types
wasm-rust:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
persist-credentials: false
- run: |
rustup update --no-self-update ${RUST_CHANNEL}
rustup default ${RUST_CHANNEL}
env:
RUST_CHANNEL: ${{ env.RUST_CHANNEL }}
- name: Setup Go ${{ env.GOLANG_VERSION }}
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c
with:
go-version: ${{ env.GOLANG_VERSION }}
- name: Install extism CLI
run: go install github.com/extism/cli/extism@latest
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32
- name: Temporary fix in Cargo.toml
run: sed -i -E 's#git = "ssh.+#path = "../../wasm-types" }#g' crates/wasm-blueprints/rust/Cargo.toml
- name: Build a Rust search filter
run: make -C crates/wasm-blueprints/rust/ build test
wasm-golang:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
persist-credentials: false
- name: Setup Go ${{ env.GOLANG_VERSION }}
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c
with:
go-version: ${{ env.GOLANG_VERSION }}
- name: Install extism CLI
run: go install github.com/extism/cli/extism@latest
- uses: acifani/setup-tinygo@db56321a62b9a67922bb9ac8f9d085e218807bb3
with:
tinygo-version: '0.34.0'
- name: Build a Golang search filter
run: make -C crates/wasm-blueprints/golang/ build test
wasm-js:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
persist-credentials: false
- name: Setup JS ${{ env.JS_VERSION }}
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f
with:
node-version: ${{ env.JS_VERSION }}
- name: Setup Go ${{ env.GOLANG_VERSION }}
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c
with:
go-version: ${{ env.GOLANG_VERSION }}
- name: Install extism CLI
run: go install github.com/extism/cli/extism@latest
- name: Build a JS search filter
run: make -C crates/wasm-blueprints/js/ build test
continue-on-error: true
docker:
runs-on: ubuntu-latest
permissions:
contents: read
continue-on-error: true
strategy:
matrix:
package:
- name: rust
directory: ./crates/wasm-blueprints/rust/
- name: golang
directory: ./crates/wasm-blueprints/golang/
- name: js
directory: ./crates/wasm-blueprints/js/
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
persist-credentials: false
- name: Run docker build
run: docker build ${{ matrix.package.directory }}