add nop of map lookup call if not enabled #215
Workflow file for this run
This file contains 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] | |
jobs: | |
test: | |
name: "run tests" | |
strategy: | |
fail-fast: false | |
matrix: | |
go: [ "1.21", "1.22" ] | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y llvm | |
clang --version | |
llc --version | |
- name: build examples | |
working-directory: examples | |
run: | | |
TARGET=bin/main make all | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
skip-pkg-cache: true | |
- name: staticcheck | |
uses: dominikh/staticcheck-action@v1.3.0 | |
with: | |
version: "2023.1.6" | |
install-go: false | |
cache-key: ${{ matrix.go }} | |
- run: "go test -exec sudo ./..." |