aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authordeadprogram <[email protected]>2022-10-14 13:49:26 +0200
committerRon Evans <[email protected]>2022-10-16 09:22:01 +0200
commit8e88f3e76a9c4bcb711773825908c61d889d245c (patch)
tree5fa9be53d529a4a4b4239d7cbb65e3caecd3dd07 /.github
parenta62044d89bae480209f01e2f660cd92079a86a71 (diff)
downloadtinygo-8e88f3e76a9c4bcb711773825908c61d889d245c.tar.gz
tinygo-8e88f3e76a9c4bcb711773825908c61d889d245c.zip
build/windows: use GH actions parallel execution to cut build time in half.
Signed-off-by: deadprogram <[email protected]>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/windows.yml83
1 files changed, 80 insertions, 3 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index 76c010cfc..e57247516 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -95,10 +95,87 @@ jobs:
with:
name: release-double-zipped
path: build/release/release.zip
+
+ smoke-test-windows:
+ runs-on: windows-2022
+ needs: build-windows
+ steps:
+ - uses: brechtm/setup-scoop@v2
+ with:
+ scoop_update: 'false'
+ - name: Install Dependencies
+ shell: bash
+ run: |
+ scoop install binaryen
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Install Go
+ uses: actions/setup-go@v3
+ with:
+ go-version: '1.19'
+ cache: true
+ - name: Download TinyGo build
+ uses: actions/download-artifact@v2
+ with:
+ name: release-double-zipped
+ path: build/
+ - name: Unzip TinyGo build
+ shell: bash
+ working-directory: build
+ run: 7z x release.zip -r
- name: Smoke tests
shell: bash
- run: make smoketest TINYGO=$(PWD)/build/tinygo AVR=0 XTENSA=0
+ run: make smoketest TINYGO=$(PWD)/build/tinygo/bin/tinygo AVR=0 XTENSA=0
+
+ stdlib-test-windows:
+ runs-on: windows-2022
+ needs: build-windows
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Install Go
+ uses: actions/setup-go@v3
+ with:
+ go-version: '1.19'
+ cache: true
+ - name: Download TinyGo build
+ uses: actions/download-artifact@v2
+ with:
+ name: release-double-zipped
+ path: build/
+ - name: Unzip TinyGo build
+ shell: bash
+ working-directory: build
+ run: 7z x release.zip -r
- name: Test stdlib packages
- run: make tinygo-test
+ run: make tinygo-test TINYGO=$(PWD)/build/tinygo/bin/tinygo
+
+ stdlib-wasi-test-windows:
+ runs-on: windows-2022
+ needs: build-windows
+ steps:
+ - uses: brechtm/setup-scoop@v2
+ with:
+ scoop_update: 'false'
+ - name: Install Dependencies
+ shell: bash
+ run: |
+ scoop install binaryen wasmtime
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Install Go
+ uses: actions/setup-go@v3
+ with:
+ go-version: '1.19'
+ cache: true
+ - name: Download TinyGo build
+ uses: actions/download-artifact@v2
+ with:
+ name: release-double-zipped
+ path: build/
+ - name: Unzip TinyGo build
+ shell: bash
+ working-directory: build
+ run: 7z x release.zip -r
- name: Test stdlib packages on wasi
- run: make tinygo-test-wasi-fast
+ run: make tinygo-test-wasi-fast TINYGO=$(PWD)/build/tinygo/bin/tinygo