forked from bytecodealliance/wit-bindgen
-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (35 loc) · 1.11 KB
/
ci.yml
File metadata and controls
44 lines (35 loc) · 1.11 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
name: CI
on:
push:
branches: [kotlin]
pull_request:
branches: [kotlin]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install Rust
run: rustup update stable --no-self-update && rustup default stable
- name: Build
run: cargo build
- name: Install test dependencies
run: cargo install --locked wasmtime-cli --root tools
- name: Codegen Tests
run: cargo run test --runner tools/bin/wasmtime --languages kotlin --artifacts target/artifacts tests/codegen
notify-downstream:
needs: build-and-test
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.CROSS_REPO_PAT }}
repository: Kotlin/hyperlight-wasm-http-example
event-type: upstream-changed
client-payload: '{"repo": "${{ github.repository }}", "sha": "${{ github.sha }}"}'