From 1ed9f2354790d8ae1e4400354ac445ca0f3d9045 Mon Sep 17 00:00:00 2001 From: Andrzej Ressel Date: Mon, 11 Mar 2024 02:24:45 +0100 Subject: [PATCH 1/3] Windows and MacOS CI --- .github/workflows/build.yml | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8b59e5e3f..fb63749c5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,11 @@ env: jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] steps: - uses: actions/checkout@v4 @@ -27,14 +31,31 @@ jobs: with: version: "25.3" - run: protoc --version - - name: Build language plugin + + - 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 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 From 90fb05c6ed428a06871a79f456f641630f907839 Mon Sep 17 00:00:00 2001 From: Andrzej Ressel Date: Mon, 11 Mar 2024 02:27:33 +0100 Subject: [PATCH 2/3] Windows and MacOS CI --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fb63749c5..e8db5c5d1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,6 +15,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] @@ -30,6 +31,7 @@ jobs: uses: arduino/setup-protoc@v3 with: version: "25.3" + repo-token: ${{ github.token }} - run: protoc --version - name: Build language plugin (Windows) From bff07b319b64a2ea6bc5eeadac7099a4a324cf05 Mon Sep 17 00:00:00 2001 From: Andrzej Ressel Date: Mon, 11 Mar 2024 02:29:46 +0100 Subject: [PATCH 3/3] Windows and MacOS CI --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e8db5c5d1..85fed2e54 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,6 +33,9 @@ jobs: 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'