Skip to content

Commit

Permalink
Removed darwin, disabled CGO due to fsckery
Browse files Browse the repository at this point in the history
  • Loading branch information
mrusme committed Dec 13, 2022
1 parent fb63143 commit a54309a
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 14 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Tests

on: [push]

jobs:
tests:
defaults:
run:
shell: bash

runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19

- name: Install dependencies
run: make install-deps

- name: Build
run: make

- name: Go test
run: go test -v ./

- name: Run xbsapi in background
run: |
./xbsapi &
- name: Run integration tests
env:
XBSAPI_API_URL: http://127.0.0.1:8000/api
run: |
./test.sh true
15 changes: 1 addition & 14 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
builds:
-
env:
- CGO_ENABLED=1
- CGO_ENABLED=0
goos:
- darwin
- dragonfly
- freebsd
- linux
- netbsd
- openbsd
# - plan9
- windows
goarch:
- 386
Expand All @@ -25,17 +23,6 @@ builds:
- 6
- 7
ignore:
- goos: darwin
goarch: 386
- goos: darwin
goarch: arm
- goos: darwin
goarch: ppc64
- goos: darwin
goarch: ppc64le
- goos: darwin
goarch: riscv64

- goos: dragonfly
goarch: 386
- goos: dragonfly
Expand Down

0 comments on commit a54309a

Please sign in to comment.