Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 23 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,45 @@ jobs:
goos: linux
goarch: amd64
target: native
# TODO: more matrix entries
# - runner: ubuntu-latest
# goos: linux
# goarch: arm64
# target: arm64
- runner: macos-latest
goos: darwin
goarch: amd64
target: native
# - runner: macos-latest
# goos: darwin
# goarch: arm64
# target: arm64
runs-on: ${{ matrix.env.runner }}
env:
TARGET: ${{ matrix.env.target }}
GOOS: ${{ matrix.env.goos }}
GOARCH: ${{ matrix.env.goarch }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ${HOME}/.gimme
key: "${{ runner.os }}-${{ matrix.env.target }}-gimme-${{ hashFiles('.testdata/*-${{ matrix.env.goos }}') }}"
restore-keys: |
${{ runner.os }}-${{ matrix.env.target }}-gimme-
- run: printf 'GIMME_TMP=%s\n' "${RUNNER_TEMP}" | tee -a "${GITHUB_ENV}"
- run: printf 'UNAME=%s\n' "$(uname | tr '[:upper:]' '[:lower:]')" | tee -a "${GITHUB_ENV}"
- run: |
GO_VERSIONS="$(sed -n -e '/^[^#]/p' < .testdata/sample-binary-$UNAME) $(sed -n -e '/^[^#]/p' < .testdata/source-$UNAME)"
printf 'GO_VERSIONS=%s\n' "$(echo "${GO_VERSIONS}" | tr '\n' ' ')" | tee -a "${GITHUB_ENV}"
GO_VERSIONS="$(sed -n -e '/^[^#]/p' < .testdata/sample-binary-$UNAME) $(sed -n -e '/^[^#]/p' < .testdata/source-$UNAME)";
printf 'GO_VERSIONS=%s\n' "$(echo "${GO_VERSIONS}" | tr '\n' ' ')" | tee -a "${GITHUB_ENV}";
- run: printf 'PATH=%s\n' "${HOME}/bin:${PATH}" | tee -a "${GITHUB_ENV}"
- run: mkdir -p "${HOME}/bin"
- run:
- run: |
if [ $UNAME = linux ] && [[ $(shellcheck --version | awk '/^version:/ { print $2 }') != 0.7.1 ]] ; then
curl -sSL -o "${GIMME_TMP}/shellcheck.tar.xz" "${SHELLCHECK_URL}";
tar -C "${HOME}/bin" --exclude="*.txt" --strip-components=1 -xf "${GIMME_TMP}/shellcheck.tar.xz";
shellcheck --version;
fi
- run:
- run: |
if [ $UNAME = linux ] && [[ $(shfmt -version 2>/dev/null) != v3.5.1 ]] ; then
curl -sSL "${SHFMT_URL}" -o "${HOME}/bin/shfmt";
chmod +x "${HOME}/bin/shfmt";
Expand All @@ -50,5 +67,6 @@ jobs:
- run: git diff --cached --exit-code
- run: ./gimme -h
- run: ./gimme -V
- run: ./gimme -l
- run: ./runtests "${TARGET}" "${GO_BOOTSTRAP_VERSION}" ${GO_VERSIONS}
- run: ./gimme -l
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
> **NOTE**: This file is no longer actively maintained. For
> releases 1.5.4+ please refer to the relevant github releases page
> for changelog-style notes.

# Change Log
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
Expand Down
6 changes: 6 additions & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
gimme was built by these wonderful humans:
- Abhinav Gupta
- Alexey Palazhchenko
- Andrew Stone
- Arek Rus
- Asato Wakisaka
- Ben Burkert
- Carmen Andoh
- Cezar Sa Espinola
- Dan Buch
- Daniel Martí
- Dan Peterson
- Dominic Jodoin
- Dylan Waits
- Euan Kemp
- Florin Patan
Expand All @@ -17,6 +20,8 @@ gimme was built by these wonderful humans:
- Geoff Levand
- Hiro Asari
- Hiroshi Ioka
- Joep van Delft
- Jules Denardou
- Koichi Shiraishi
- lupan2005
- Matt Larraz
Expand All @@ -25,6 +30,7 @@ gimme was built by these wonderful humans:
- Nathan Youngman
- Otto Jongerius
- Phil Pennock
- Robert Mazur
- Thomas Heller
- Tianon Gravi
- Tom Cahill
4 changes: 2 additions & 2 deletions gimme
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ set -o pipefail

[[ ${GIMME_DEBUG} ]] && set -x

readonly GIMME_VERSION="v1.5.4"
readonly GIMME_VERSION="v1.6.0"
readonly GIMME_COPYRIGHT="Copyright (c) 2022 gimme contributors"
readonly GIMME_LICENSE_URL="https://raw.githubusercontent.com/urfave/gimme/${GIMME_VERSION}/LICENSE"
export GIMME_VERSION
Expand Down Expand Up @@ -285,7 +285,7 @@ _extract() {

# _setup_bootstrap
_setup_bootstrap() {
local versions=("1.18" "1.17" "1.16" "1.15" "1.14" "1.13" "1.12" "1.11" "1.10" "1.9" "1.8" "1.7" "1.6" "1.5" "1.4")
local versions=("1.19" "1.18" "1.17")

# try existing
for v in "${versions[@]}"; do
Expand Down