diff --git a/.circleci/config.yml b/.circleci/config.yml index c68dee5..0f35067 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,13 +17,27 @@ jobs: name: Run unit tests command: gotestsum --junitfile ${TEST_RESULTS}/go-test-report.xml - - run: go build -ldflags "-X main.date=`date -u +%Y-%m-%dT%H:%M:%SZ` -X main.commit=${CIRCLE_SHA1}" + - run: + name: build amd64 + environment: + GOOS: linux + GOARCH: amd64 + command: | + go build -ldflags "-X main.date=`date -u +%Y-%m-%dT%H:%M:%SZ` -X main.commit=${CIRCLE_SHA1}" -o go-minipypi-Linux-amd64 + gzip go-minipypi-Linux-amd64 - run: - name: Create build artifact + name: build arm64 + environment: + GOOS: linux + GOARCH: arm64 command: | - gzip go-minipypi - mv -f go-minipypi.gz "$OUTPUT_BIN/go-minipypi-`uname -s`-`uname -m`.gz" + go build -ldflags "-X main.date=`date -u +%Y-%m-%dT%H:%M:%SZ` -X main.commit=${CIRCLE_SHA1}" -o go-minipypi-Linux-arm64 + gzip go-minipypi-Linux-arm64 + + - run: + name: Create build artifacts + command: mv -f go-minipypi-*.gz "$OUTPUT_BIN" - store_artifacts: path: *test_results diff --git a/go.mod b/go.mod index 8a7148a..cb6660d 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,7 @@ module github.com/citymapper/go-minipypi +go 1.15 + require ( github.com/aws/aws-sdk-go v1.16.1 github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8