feat(wasm): add wasm runtime support [KS-44] #281
This file contains hidden or 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
| name: ci | |
| on: | |
| push: | |
| branches: [ "develop" ] | |
| pull_request: | |
| branches: [ "develop" ] | |
| types: [opened, reopened, synchronize] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| goos: [linux] | |
| goarch: [amd64, arm64, arm, riscv64] | |
| steps: | |
| - name: "[preparation] checkout the current branch" | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: "[preparation] set up golang" | |
| uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 | |
| with: | |
| go-version-file: go.mod | |
| cache-dependency-path: go.sum | |
| - name: "[preparation] install cross-compilation toolchains" | |
| run: sudo make install-cross-compilers | |
| - name: "[execution] build the binary for ${{ matrix.goos }}/${{ matrix.goarch }}" | |
| run: make build GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} | |
| - name: "[execution] upload artifact" | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| with: | |
| name: kubesolo-${{ matrix.goos }}-${{ matrix.goarch }} | |
| path: ./dist/kubesolo | |
| retention-days: 30 |