authorgravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-11-16 13:07:54 -08:00
committergravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-11-16 13:07:54 -08:00
loga05384affd821444e6e6098da20ff19fe2bf5623
treea6740bb689f30f24f65d38d68f4f46a36b2943e9
parentb398ef7a3987804037f6493c387489e33d50c5ae

switch back to debian based image


6 files changed, 14 insertions(+), 16 deletions(-)

.circleci/config.yml+5-6
...@@ -5,16 +5,15 @@ jobs:...@@ -5,16 +5,15 @@ jobs:
5 build:5 build:
6 working_directory: /home/circleci/zigmod6 working_directory: /home/circleci/zigmod
7 docker:7 docker:
8 - image: alpine:edge8 - image: golang
9 environment:9 environment:
10 GOPATH: /usr/lib/go10 DEBIAN_FRONTEND: noninteractive
11 steps:11 steps:
12 - run: apk update12 - run: apt update
13 - run: apk add git13 - run: apt -y upgrade
14 - checkout14 - checkout
15 - run: git submodule update --init --recursive15 - run: git submodule update --init --recursive
1616
17 - run: apk add go
18 - run: go version17 - run: go version
19 - run: go env18 - run: go env
20 - run: go get -v .19 - run: go get -v .
...@@ -24,10 +23,10 @@ jobs:...@@ -24,10 +23,10 @@ jobs:
24 path: ./bin/23 path: ./bin/
25 destination: /artifacts/24 destination: /artifacts/
2625
26 - run: apt -y install xz-utils jq
27 - run: ./download_zig.sh 0.7.027 - run: ./download_zig.sh 0.7.0
28 - run: zig version28 - run: zig version
29 - run: zig env29 - run: zig env
30 - run: apk add jq grep
31 - run: ./build_all_zig.sh30 - run: ./build_all_zig.sh
32 - store_artifacts:31 - store_artifacts:
33 path: ./zig-cache/bin/32 path: ./zig-cache/bin/
build_all.sh+1-1
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1#!/bin/sh1#!/usr/bin/env bash
22
3set -e3set -e
44
build_all_zig.sh+1-1
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1#!/bin/sh1#!/usr/bin/env bash
22
3set -e3set -e
44
changelog.sh+1-1
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1#!/bin/sh1#!/usr/bin/env bash
22
3set -e3set -e
44
download_zig.sh+3-4
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1#!/bin/sh1#!/usr/bin/env bash
22
3set -x3set -x
4set -e4set -e
...@@ -10,8 +10,7 @@ version="$1"...@@ -10,8 +10,7 @@ version="$1"
10dir="zig-$os-$arch-$version"10dir="zig-$os-$arch-$version"
11file="$dir.tar.xz"11file="$dir.tar.xz"
1212
13cd ~13cd /
14apk add wget tar
15wget https://ziglang.org/download/$version/$file14wget https://ziglang.org/download/$version/$file
16tar -vxf $file15tar -vxf $file
17ln -s ~/$dir/zig /bin16ln -s /$dir/zig /usr/local/bin
make_release.sh+3-3
...@@ -1,15 +1,15 @@...@@ -1,15 +1,15 @@
1#!/bin/sh1#!/usr/bin/env bash
22
3set -e3set -e
44
5date=$(date +'%Y.%m.%d')5date=$(date +'%Y.%m.%d')
6version=${CIRCLE_BUILD_NUM-$date}6version=${CIRCLE_BUILD_NUM-$date}
7tag=v$version-$(git log --format=%h -1)7tag=v$version-$(git log --format=%h -1)
8go get -v -u github.com/tcnksm/ghr8go get -v github.com/tcnksm/ghr
9$GOPATH/bin/ghr \9$GOPATH/bin/ghr \
10 -t ${GITHUB_TOKEN} \10 -t ${GITHUB_TOKEN} \
11 -u ${CIRCLE_PROJECT_USERNAME} \11 -u ${CIRCLE_PROJECT_USERNAME} \
12 -r ${CIRCLE_PROJECT_REPONAME} \12 -r ${CIRCLE_PROJECT_REPONAME} \
13 -b "$(sh ./changelog.sh)" \13 -b "$(./changelog.sh)" \
14 "$tag" \14 "$tag" \
15 "/artifacts/"15 "/artifacts/"