Skip to content

Commit

Permalink
Merge pull request #30 from andrzejressel/windows_macos_ci
Browse files Browse the repository at this point in the history
Windows and MacOS CI
  • Loading branch information
mergify[bot] authored Mar 11, 2024
2 parents 2db94e0 + f16cbda commit d8438cf
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ env:
jobs:
build:

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v4
Expand All @@ -26,15 +31,36 @@ jobs:
uses: arduino/setup-protoc@v3
with:
version: "25.3"
repo-token: ${{ github.token }}
- run: protoc --version
- name: Build language plugin
- 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: Build WASM support

- name: Install required cargo packages
run: |
cargo install [email protected] --locked || cargo-component --version
cargo install [email protected] --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
Expand Down

0 comments on commit d8438cf

Please sign in to comment.