added more deps #5
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 Build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install system dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y build-essential libgl1-mesa-dev libglu1-mesa-dev libxi-dev libxmu-dev libx11-dev libxrandr-dev libxcursor-dev libxinerama-dev | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- name: Install dependencies | |
run: go mod tidy | |
- name: Build | |
run: | | |
mkdir -p bin | |
go build -o bin/dvpl_lz4-linux | |
- name: Run tests | |
run: go test ./... | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dvpl_lz4-linux | |
path: bin/dvpl_lz4-linux | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- name: Install dependencies | |
run: go mod tidy | |
- name: Build | |
run: | | |
mkdir -p bin | |
go build -o bin/dvpl_lz4-windows.exe | |
- name: Run tests | |
run: go test ./... | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dvpl_lz4-windows | |
path: bin/dvpl_lz4-windows.exe |