Skip to content

Statically link to libxml2 when static_build tag is defined #39

Statically link to libxml2 when static_build tag is defined

Statically link to libxml2 when static_build tag is defined #39

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=2.12.0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Test
run: go test ./...