This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
Add archlinux CI + Silence compilation warnings on new libxml2 #34
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: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
ubuntu: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: [ '1.21' ] | |
name: "Test [ Go ${{ matrix.go }} ]" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Cache Go modules | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/go/pkg/mod | |
~/.cache/go-build | |
~/.cache/bazel | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Install Go stable version | |
if: matrix.go != 'tip' | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go }} | |
check-latest: true | |
- name: Test | |
run: go test ./... | |
archlinux: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: [ '1.21' ] | |
container: | |
image: archlinux:latest | |
name: "Test [ Arch Linux + Go ${{ matrix.go }} ]" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set Up Arch Linux | |
run: | | |
pacman -Syy --noconfirm | |
pacman -Syu --noconfirm | |
pacman -S --noconfirm base-devel | |
pacman -S --noconfirm libxml2 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Test | |
run: go test ./... |