Add shell.nix for reproducible builds #104
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: Go | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Build/Test | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 3 | |
strategy: | |
matrix: | |
go-version: [stable, oldstable] | |
os: [ubuntu-latest] | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
id: go | |
- name: Install dependencies | |
run: sudo apt-get update && sudo apt-get install -y gcc pkg-config libwayland-dev libx11-dev libx11-xcb-dev libxkbcommon-x11-dev libgles2-mesa-dev libegl1-mesa-dev libffi-dev libxcursor-dev libvulkan-dev | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v1 | |
- name: Build | |
run: go build -v ./... | |
- name: Test | |
run: go test -v ./... --timeout 60s | |
- name: Meta Tests | |
run: go test -v -tags ci ./ci --timeout 60s | |
if: ${{ runner.os == 'Linux' }} |