feat: add lab5 #1
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
| # This workflow will build a golang project | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
| name: lab5 | |
| on: | |
| push: | |
| paths: | |
| - 'lab5/**' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v4 | |
| with: | |
| go-version-file: 'lab5/go.mod' | |
| cache: false | |
| - name: Build | |
| working-directory: 'lab5' | |
| run: | | |
| pip install -r requirements.txt | |
| cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" . | |
| GOOS=js GOARCH=wasm go build -o wasm/lib.wasm wasm/main.go | |
| - name: Run | |
| working-directory: 'lab5' | |
| run: | | |
| go run server.go & | |
| python3 validate.py |