Skip to content
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

Add archlinux CI + Silence compilation warnings on new libxml2

Add archlinux CI + Silence compilation warnings on new libxml2 #34

Workflow file for this run

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 ./...