-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
86 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,4 +135,86 @@ jobs: | |
prerelease: true | ||
body: "" | ||
files: | | ||
pulumi-language-wasm/*.tar.gz | ||
pulumi-language-wasm/*.tar.gz | ||
deploy_runner: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- rust-target: x86_64-unknown-linux-gnu | ||
os: ubuntu-latest | ||
- rust-target: x86_64-apple-darwin | ||
os: macos-latest | ||
- rust-target: aarch64-apple-darwin | ||
os: macos-latest | ||
- rust-target: x86_64-pc-windows-msvc | ||
os: windows-latest | ||
|
||
steps: | ||
- run: git config --system core.longpaths true | ||
if: runner.os == 'Windows' | ||
- name: Write release version (non-Windows) | ||
if: matrix.os != 'windows-latest' | ||
run: | | ||
VERSION=${GITHUB_REF_NAME#v} | ||
echo "Version: $VERSION" | ||
echo "VERSION=$VERSION" >> $GITHUB_ENV | ||
- name: Write release version (Windows) | ||
if: matrix.os == 'windows-latest' | ||
run: | | ||
$VERSION = $env:GITHUB_REF_NAME -replace "^v" | ||
echo "Version: $VERSION" | ||
echo "VERSION=$VERSION" >> $env:GITHUB_ENV | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- uses: extractions/setup-just@v2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: cargo-bins/cargo-binstall@main | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Install requirements | ||
run: just install-requirements | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Install Protoc | ||
uses: arduino/setup-protoc@v3 | ||
with: | ||
version: "25.3" | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- run: protoc --version | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
shared-key: build | ||
save-if: false | ||
workspaces: | | ||
./ | ||
pulumi_wasm_generator_lib/tests/output/pulumi_providers/command/ | ||
pulumi_wasm_generator_lib/tests/output/pulumi_providers/docker/ | ||
pulumi_wasm_generator_lib/tests/output/pulumi_providers/random/ | ||
pulumi_wasm_generator_lib/tests/output/pulumi_tests/cyclic-types/ | ||
pulumi_wasm_generator_lib/tests/output/pulumi_tests/mini-awsnative/ | ||
- name: Add target | ||
run: rustup target add ${{ matrix.rust-target }} | ||
- name: Build runner | ||
run: cargo build -p pulumi_wasm_runner --target ${{ matrix.rust-target }} | ||
|
||
- run: mv ./target/${{ matrix.rust-target }}/debug/pulumi_wasm_runner.exe ./target/${{ matrix.rust-target }}/debug/pulumi_wasm_runner-${{ matrix.rust-target }} | ||
if: matrix.os == 'windows-latest' | ||
- run: mv ./target/${{ matrix.rust-target }}/debug/pulumi_wasm_runner ./target/${{ matrix.rust-target }}/debug/pulumi_wasm_runner-${{ matrix.rust-target }} | ||
if: matrix.os != 'windows-latest' | ||
|
||
- name: Release | ||
uses: softprops/[email protected] | ||
with: | ||
name: ${{ env.VERSION }} | ||
tag_name: ${{ env.GITHUB_REF_NAME }} | ||
fail_on_unmatched_files: true | ||
prerelease: true | ||
body: "" | ||
files: | | ||
./target/${{ matrix.rust-target }}/debug/pulumi_wasm_runner-${{ matrix.rust-target }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters