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:
55 build:
66 working_directory: /home/circleci/zigmod
77 docker:
8 - image: alpine:edge
8 - image: golang
99 environment:
10 GOPATH: /usr/lib/go
10 DEBIAN_FRONTEND: noninteractive
1111 steps:
12 - run: apk update
13 - run: apk add git
12 - run: apt update
13 - run: apt -y upgrade
1414 - checkout
1515 - run: git submodule update --init --recursive
1616
17 - run: apk add go
1817 - run: go version
1918 - run: go env
2019 - run: go get -v .
......@@ -24,10 +23,10 @@ jobs:
2423 path: ./bin/
2524 destination: /artifacts/
2625
26 - run: apt -y install xz-utils jq
2727 - run: ./download_zig.sh 0.7.0
2828 - run: zig version
2929 - run: zig env
30 - run: apk add jq grep
3130 - run: ./build_all_zig.sh
3231 - store_artifacts:
3332 path: ./zig-cache/bin/
build_all.sh+1-1
......@@ -1,4 +1,4 @@
1#!/bin/sh
1#!/usr/bin/env bash
22
33set -e
44
build_all_zig.sh+1-1
......@@ -1,4 +1,4 @@
1#!/bin/sh
1#!/usr/bin/env bash
22
33set -e
44
changelog.sh+1-1
......@@ -1,4 +1,4 @@
1#!/bin/sh
1#!/usr/bin/env bash
22
33set -e
44
download_zig.sh+3-4
......@@ -1,4 +1,4 @@
1#!/bin/sh
1#!/usr/bin/env bash
22
33set -x
44set -e
......@@ -10,8 +10,7 @@ version="$1"
1010dir="zig-$os-$arch-$version"
1111file="$dir.tar.xz"
1212
13cd ~
14apk add wget tar
13cd /
1514wget https://ziglang.org/download/$version/$file
1615tar -vxf $file
17ln -s ~/$dir/zig /bin
16ln -s /$dir/zig /usr/local/bin
make_release.sh+3-3
......@@ -1,15 +1,15 @@
1#!/bin/sh
1#!/usr/bin/env bash
22
33set -e
44
55date=$(date +'%Y.%m.%d')
66version=${CIRCLE_BUILD_NUM-$date}
77tag=v$version-$(git log --format=%h -1)
8go get -v -u github.com/tcnksm/ghr
8go get -v github.com/tcnksm/ghr
99$GOPATH/bin/ghr \
1010 -t ${GITHUB_TOKEN} \
1111 -u ${CIRCLE_PROJECT_USERNAME} \
1212 -r ${CIRCLE_PROJECT_REPONAME} \
13 -b "$(sh ./changelog.sh)" \
13 -b "$(./changelog.sh)" \
1414 "$tag" \
1515 "/artifacts/"