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 - 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" 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 - name: Build
env:
GO111MODULE: "on"
run: go build ./... run: go build ./...
- name: Test - name: Test
env:
GO111MODULE: "on"
run: | run: |
sh ./goclean.sh sh ./goclean.sh

View file

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

View file

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

View file

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