Skip to content

Commit

Permalink
Renaming and migrating post-import
Browse files Browse the repository at this point in the history
(please)
  • Loading branch information
meatballhat committed Oct 16, 2022
1 parent 3f3a9dc commit 333764d
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 96 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: main
on:
push:
branches: [main]
tags: [v*]
pull_request:
branches: [main]
env:
GO_BOOTSTRAP_VERSION: 1.17.13
SHELLCHECK_URL: "https://www.googleapis.com/download/storage/v1/b/shellcheck/o/shellcheck-v0.4.7.linux.x86_64.tar.xz?alt=media"
SHFMT_URL: "https://github.com/mvdan/sh/releases/download/v2.2.0/shfmt_v2.2.0_linux_amd64"
jobs:
build:
strategy:
matrix:
env:
- runner: ubuntu-latest
goos: linux
goarch: amd64
target: native
# TODO: more matrix entries
runs-on: ${{ matrix.env.runner }}
env:
TARGET: ${{ matrix.env.target }}
GOOS: ${{ matrix.env.goos }}
GOARCH: ${{ matrix.env.goarch }}
steps:
- uses: actions/checkout@v3
- 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: printf 'GO_VERSIONS=%s\n' "$(sed -n -e '/^[^#]/p' < .testdata/sample-binary-$UNAME) $(sed -n -e '/^[^#]/p' < .testdata/source-$UNAME)" | tee -a "${GITHUB_ENV}"
- run: printf 'PATH=%s\n' "${HOME}/bin:${PATH}" | tee -a "${GITHUB_ENV}"
- run:
if [ $UNAME = linux ] && [[ $(shellcheck --version | awk '/^version:/ { print $2 }') != 0.4.7 ]] ; 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:
if [ $UNAME = linux ] && [[ $(shfmt -version 2>/dev/null) != v2.2.0 ]] ; then
curl -sSL "${SHFMT_URL}" -o "${HOME}/bin/shfmt";
chmod +x "${HOME}/bin/shfmt";
shfmt -version;
fi
- run: if [ $UNAME = linux ]; then make lint; fi
- run: git diff --exit-code
- run: git diff --cached --exit-code
- run: ./gimme -h
- run: ./gimme -V
- run: ./runtests "${TARGET}" "${GO_BOOTSTRAP_VERSION}" ${GO_VERSIONS}
- run: ./gimme -l
50 changes: 0 additions & 50 deletions .travis.yml

This file was deleted.

32 changes: 16 additions & 16 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,19 +157,19 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Added
- Initial release!

[Unreleased]: https://github.com/travis-ci/gimme/compare/v1.5.3...HEAD
[1.5.3]: https://github.com/travis-ci/gimme/compare/v1.5.2...v1.5.3
[1.5.2]: https://github.com/travis-ci/gimme/compare/v1.5.1...v1.5.2
[1.5.1]: https://github.com/travis-ci/gimme/compare/v1.5.0...v1.5.1
[1.5.0]: https://github.com/travis-ci/gimme/compare/v1.4.0...v1.5.0
[1.4.0]: https://github.com/travis-ci/gimme/compare/v1.3.0...v1.4.0
[1.3.0]: https://github.com/travis-ci/gimme/compare/v1.2.0...v1.3.0
[1.2.0]: https://github.com/travis-ci/gimme/compare/v1.1.0...v1.2.0
[1.1.0]: https://github.com/travis-ci/gimme/compare/v1.0.4...v1.1.0
[1.0.0]: https://github.com/travis-ci/gimme/compare/v0.2.4...v1.0.0
[0.2.4]: https://github.com/travis-ci/gimme/compare/v0.2.3...v0.2.4
[0.2.3]: https://github.com/travis-ci/gimme/compare/v0.2.2...v0.2.3
[0.2.2]: https://github.com/travis-ci/gimme/compare/v0.2.1...v0.2.2
[0.2.1]: https://github.com/travis-ci/gimme/compare/v0.2.0...v0.2.1
[0.2.0]: https://github.com/travis-ci/gimme/compare/v0.1.0...v0.2.0
[0.1.0]: https://github.com/travis-ci/gimme/compare/655fc2e...v0.1.0
[Unreleased]: https://github.com/urfave/gimme/compare/v1.5.3...HEAD
[1.5.3]: https://github.com/urfave/gimme/compare/v1.5.2...v1.5.3
[1.5.2]: https://github.com/urfave/gimme/compare/v1.5.1...v1.5.2
[1.5.1]: https://github.com/urfave/gimme/compare/v1.5.0...v1.5.1
[1.5.0]: https://github.com/urfave/gimme/compare/v1.4.0...v1.5.0
[1.4.0]: https://github.com/urfave/gimme/compare/v1.3.0...v1.4.0
[1.3.0]: https://github.com/urfave/gimme/compare/v1.2.0...v1.3.0
[1.2.0]: https://github.com/urfave/gimme/compare/v1.1.0...v1.2.0
[1.1.0]: https://github.com/urfave/gimme/compare/v1.0.4...v1.1.0
[1.0.0]: https://github.com/urfave/gimme/compare/v0.2.4...v1.0.0
[0.2.4]: https://github.com/urfave/gimme/compare/v0.2.3...v0.2.4
[0.2.3]: https://github.com/urfave/gimme/compare/v0.2.2...v0.2.3
[0.2.2]: https://github.com/urfave/gimme/compare/v0.2.1...v0.2.2
[0.2.1]: https://github.com/urfave/gimme/compare/v0.2.0...v0.2.1
[0.2.0]: https://github.com/urfave/gimme/compare/v0.1.0...v0.2.0
[0.1.0]: https://github.com/urfave/gimme/compare/655fc2e...v0.1.0
11 changes: 6 additions & 5 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@ further defined and clarified by project maintainers.
## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at [email protected]. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.
reported by contacting the project team at [email protected], a
members-only group that is world-postable. All complaints will be reviewed and
investigated and will result in a response that is deemed necessary and
appropriate to the circumstances. The project team is obligated to maintain
confidentiality with regard to the reporter of an incident. Further details of
specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
Expand Down
25 changes: 3 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# gimme [![Build Status](https://travis-ci.com/travis-ci/gimme.svg?branch=master)](https://travis-ci.com/travis-ci/gimme)
# gimme

Install go, yay!

Expand All @@ -11,7 +11,7 @@ Install from github:
``` bash
# assumes ~/bin exists and is in $PATH, so adjust accordingly!

curl -sL -o ~/bin/gimme https://raw.githubusercontent.com/travis-ci/gimme/master/gimme
curl -sL -o ~/bin/gimme https://raw.githubusercontent.com/urfave/gimme/main/gimme
chmod +x ~/bin/gimme
```

Expand Down Expand Up @@ -67,7 +67,7 @@ source ~/.gimme/envs/go1.4.env
Or run without installing gimme:

``` bash
eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=1.4 bash)"
eval "$(curl -sL https://raw.githubusercontent.com/urfave/gimme/main/gimme | GIMME_GO_VERSION=1.4 bash)"
```

To install and use the current stable release of Go:
Expand Down Expand Up @@ -128,25 +128,6 @@ gimme --version
gimme version
```

### `.travis.yml`

The original goal of this project was trivial cross-compilation within Travis. The following is an example `.travis.yml` file to accomplish this for a normal Go project:

```yaml
language: go

env:
- GIMME_OS=linux GIMME_ARCH=amd64
- GIMME_OS=darwin GIMME_ARCH=amd64
- GIMME_OS=windows GIMME_ARCH=amd64

install:
- go get -d -v ./...

script:
- go build -v ./...
```
## Available Versions

### Policy of Gimme
Expand Down
4 changes: 2 additions & 2 deletions gimme
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ set -o pipefail
[[ ${GIMME_DEBUG} ]] && set -x

readonly GIMME_VERSION="v1.5.4"
readonly GIMME_COPYRIGHT="Copyright (c) 2015-2020 gimme contributors"
readonly GIMME_LICENSE_URL="https://raw.githubusercontent.com/travis-ci/gimme/${GIMME_VERSION}/LICENSE"
readonly GIMME_COPYRIGHT="Copyright (c) 2022 gimme contributors"
readonly GIMME_LICENSE_URL="https://raw.githubusercontent.com/urfave/gimme/${GIMME_VERSION}/LICENSE"
export GIMME_VERSION
export GIMME_COPYRIGHT
export GIMME_LICENSE_URL
Expand Down
2 changes: 1 addition & 1 deletion runtests
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ _test_arm64() {
echo "---> skipping ${v} because it probably won't work o_o"
continue
fi
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cgo=1; else cgo=0; fi
if [[ "$RUNNER_OS" == "Linux" ]]; then cgo=1; else cgo=0; fi
echo "---> eval \$(GIMME_OS=linux GIMME_ARCH=arm64 GIMME_CGO_ENABLED=$cgo ./gimme $v)"
(
eval "$(GIMME_OS=linux GIMME_ARCH=arm64 GIMME_CGO_ENABLED=$cgo ./gimme "${v}")"
Expand Down

0 comments on commit 333764d

Please sign in to comment.