chore: more documentation in README.md #5
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: Go Example | |
| on: | |
| push: | |
| paths: | |
| - "examples/golang/tasm-go/**" | |
| pull_request: | |
| paths: | |
| - "examples/golang/tasm-go/**" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: "1.24" | |
| - name: Cache Go modules | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/go/pkg/mod | |
| ~/.cache/go-build | |
| key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
| restore-keys: | | |
| ${{ runner.os }}-go- | |
| - name: Initialize Go modules | |
| working-directory: examples/golang/tasm-go | |
| run: go mod tidy | |
| - name: Download dependencies | |
| working-directory: examples/golang/tasm-go | |
| run: go mod download | |
| - name: Verify dependencies | |
| working-directory: examples/golang/tasm-go | |
| run: go mod verify | |
| - name: Build | |
| working-directory: examples/golang/tasm-go | |
| run: go build -v ./... | |
| - name: Run disassembler | |
| working-directory: examples/golang/tasm-go | |
| run: | | |
| go run main.go |