github.com/rajveermalviya/gamen@v0.1.2-0.20220930195403-9be15877c1aa/.github/workflows/ci.yml (about) 1 name: CI 2 3 on: 4 push: 5 branches: ["main"] 6 pull_request: 7 8 jobs: 9 test-build: 10 name: ${{ matrix.name }} 11 runs-on: ${{ matrix.os }} 12 strategy: 13 fail-fast: false 14 matrix: 15 include: 16 - name: Test build on linux for linux 17 os: ubuntu-22.04 18 goos: linux 19 build_cmd: | 20 set -x; 21 go build -o out ./examples/hello 22 file out 23 24 - name: Test build on windows for windows 25 os: windows-2022 26 goos: windows 27 build_cmd: | 28 set -x; 29 go build -o out ./examples/hello 30 file out 31 32 - name: Test build on linux for windows 33 os: ubuntu-22.04 34 goos: windows 35 build_cmd: | 36 set -x; 37 GOOS=windows go build -o out ./examples/hello 38 file out 39 40 - name: Test build on linux for web 41 os: ubuntu-22.04 42 goos: js 43 build_cmd: | 44 set -x; 45 GOOS=js GOARCH=wasm go build -o out ./examples/hello 46 file out 47 48 - name: Test build on linux for android 49 os: ubuntu-22.04 50 goos: android 51 setup_env: | 52 go install github.com/rajveermalviya/tsukuru/cmd/tsukuru@latest 53 build_cmd: | 54 set -x; 55 tsukuru build apk ./examples/hello 56 57 steps: 58 - name: Checkout 59 uses: actions/checkout@v2 60 - name: Setup Go 61 uses: actions/setup-go@v2 62 with: 63 go-version: "1.19" 64 - name: Setup Environment 65 run: ${{ matrix.setup_env }} 66 shell: bash 67 - name: Run build tests 68 shell: bash 69 run: ${{ matrix.build_cmd }}