-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (57 loc) · 1.63 KB
/
build.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
57
58
59
60
61
62
63
64
65
66
67
name: Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- uses: actions/setup-go@v5
with:
go-version: '^1.22.0'
cache-dependency-path: "**/go.sum"
- run: go version
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
version: "25.3"
repo-token: ${{ github.token }}
- run: protoc --version
- run: brew install pulumi
if: runner.os == 'macOS'
- run: pulumi version
- name: Build language plugin (Windows)
if: runner.os == 'Windows'
run: ./build.bat
working-directory: pulumi-language-wasm
- name: Build language plugin (Unix)
if: runner.os == 'Linux' || runner.os == 'macOS'
run: ./build.sh
working-directory: pulumi-language-wasm
- name: Install required cargo packages
run: |
cargo install cargo-component@0.9.0 --locked || cargo-component --version
cargo install wasm-tools@1.0.57 --locked || wasm-tools --version
./build.sh
- name: Build WASM support (Windows)
if: runner.os == 'Windows'
run: |
./build.bat
- name: Build WASM support (Unix)
if: runner.os == 'Linux' || runner.os == 'macOS'
run: |
./build.sh
- name: Run tests
run: cargo test --all --verbose
- name: Ensure no files have changed
run: git diff --exit-code