updating build scripts to not use ICU

This commit is contained in:
Brannon King 2021-08-19 17:51:47 -04:00
parent 61de064575
commit 0be18205c8
4 changed files with 8 additions and 13 deletions

View file

@ -17,12 +17,8 @@ jobs:
- name: Install Linters
run: "curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.26.0"
- name: Build
env:
GO111MODULE: "on"
run: go build ./...
- name: Test
env:
GO111MODULE: "on"
run: |
sh ./goclean.sh

View file

@ -12,8 +12,9 @@ jobs:
strategy:
matrix:
go: [1.16]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
os: [linux, darwin, windows]
ar: [amd64, arm64]
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
@ -21,13 +22,11 @@ jobs:
go-version: ${{ matrix.go }}
- name: Checkout source
uses: actions/checkout@v2
- name: Install coreutils, ICU for macOS
if: matrix.os == 'macos-latest'
run: brew install coreutils icu4c
- name: Build executables
env:
GO111MODULE: "on"
run: go build -trimpath -o artifacts/ --tags use_icu_normalization .
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.ar }}
run: go build -trimpath -o artifacts/ .
- name: SHA256 sum
run: sha256sum -b artifacts/* > artifacts/lbcd.sha256
- name: Upload artifacts

View file

@ -25,7 +25,7 @@ jobs:
- name: Checkout source
uses: actions/checkout@v2
- name: Build lbcd
run: go build --tags use_icu_normalization .
run: go build .
- name: Create datadir
run: echo "TEMP_DATA_DIR=$(mktemp -d)" >> $GITHUB_ENV
- name: Run lbcd

View file

@ -25,7 +25,7 @@ jobs:
- name: Checkout source
uses: actions/checkout@v2
- name: Build lbcd
run: go build --tags use_icu_normalization .
run: go build .
- name: Create datadir
run: echo "TEMP_DATA_DIR=$(mktemp -d)" >> $GITHUB_ENV
- name: Copy initial data