Update semgrep.yml #24
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: Cloudflare/bn256 | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
amd64_job: | |
name: Go-${{matrix.GOVER}}/amd64 | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
GOVER: ['1.21', '1.20'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Go-${{ matrix.GOVER }} | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.GOVER }} | |
- name: Building | |
run: go build -v ./... | |
- name: Testing | |
run: go test -v -count=1 ./... | |
arm64_job: | |
name: Go-${{matrix.CFG[2]}}/${{matrix.CFG[0]}} | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
CFG: [[arm64, arm64v8, 1.21]] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Enabling Docker Experimental | |
run: | | |
echo $'{\n "experimental": true\n}' | sudo tee /etc/docker/daemon.json | |
sudo service docker restart | |
- name: Pulling Images | |
run: | | |
docker pull -q multiarch/qemu-user-static | |
docker pull -q --platform linux/${{matrix.CFG[0]}} ${{matrix.CFG[1]}}/golang:${{matrix.CFG[2]}} | |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes | |
- name: Testing | |
run: | | |
docker run --rm -v `pwd`:`pwd` -w `pwd` ${{matrix.CFG[1]}}/golang:${{matrix.CFG[2]}} go test -v ./... | |
osCompat: | |
runs-on: ${{ matrix.os }} | |
name: Running on ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21' | |
- name: Building | |
run: go build -v ./... | |
- name: Testing | |
run: go test -v -count=1 ./... |