forked from coop-cloud-mirrors/godotenv
		
	Compare commits
	
		
			1 Commits
		
	
	
		
			release-ac
			...
			go-modules
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 9eb454e589 | 
							
								
								
									
										45
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										45
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @ -3,10 +3,9 @@ name: CI | ||||
| on: [push] | ||||
|  | ||||
| jobs: | ||||
|   test: | ||||
|   build: | ||||
|     runs-on: ${{ matrix.os }} | ||||
|     strategy: | ||||
|       fail-fast: false | ||||
|       matrix: | ||||
|         go: [ '1.15', '1.14' ] | ||||
|         os: [ ubuntu-latest, macOS-latest, windows-latest ] | ||||
| @ -18,45 +17,3 @@ jobs: | ||||
|         with: | ||||
|           go-version: ${{ matrix.go }} | ||||
|       - run: go test | ||||
|  | ||||
|   test-non-amd64: | ||||
|     strategy: | ||||
|       fail-fast: false | ||||
|       matrix: | ||||
|         arch: | ||||
|           # For some reasons this is segfaulting on go env | ||||
|           # - name: IBM Z and LinuxONE | ||||
|           #   architecture: "s390x" | ||||
|           - name: POWER8 | ||||
|             architecture: "ppc64le" | ||||
|      | ||||
|     runs-on: ubuntu-latest | ||||
|     name: Test on ${{ matrix.arch.name }}  | ||||
|     steps: | ||||
|       - uses: actions/checkout@v2 | ||||
|       - uses: uraimo/run-on-arch-action@master | ||||
|         with: | ||||
|           arch: ${{ matrix.arch.architecture }} | ||||
|           distro: ubuntu20.04 | ||||
|           env: | # YAML pipe | ||||
|             GOARCH: ${{ matrix.arch.architecture }} | ||||
|             CGO_ENABLED: 0 | ||||
|           run: | | ||||
|             apt-get update | ||||
|             apt-get install -q -y curl wget git | ||||
|             latestGo=$(curl "https://golang.org/VERSION?m=text") | ||||
|             wget "https://dl.google.com/go/${latestGo}.linux-${GOARCH}.tar.gz" | ||||
|             rm -f $(which go) | ||||
|             rm -rf /usr/local/go | ||||
|             tar -C /usr/local -xzf "${latestGo}.linux-${GOARCH}.tar.gz" | ||||
|             export PATH=/usr/local/go/bin:$PATH | ||||
|             printf "Using go at: $(which go)\n" | ||||
|             printf "Go version: $(go version)\n" | ||||
|             printf "\n\nGo environment:\n\n" | ||||
|             go env | ||||
|             printf "\n\nSystem environment:\n\n" | ||||
|             env | ||||
|             go get -insecure -v -t -d ./... | ||||
|             go test ./... | ||||
|             cd ./cmd/godotenv | ||||
|             go build -trimpath -ldflags="-w -s" -v | ||||
							
								
								
									
										42
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										42
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							| @ -1,42 +0,0 @@ | ||||
| on: | ||||
|   push: | ||||
|     tags: | ||||
|     - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | ||||
|  | ||||
| name: Upload Release Assets | ||||
|  | ||||
| jobs: | ||||
|   build: | ||||
|     name: Upload Release Assets | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - name: Checkout code | ||||
|         uses: actions/checkout@v2 | ||||
|       - name: Generate build files | ||||
|         uses: thatisuday/go-cross-build@v1 | ||||
|         with: | ||||
|             platforms: 'linux/amd64, linux/ppc64le, darwin/amd64, windows/amd64' | ||||
|             package: 'cmd/godotenv' | ||||
|             name: 'godotenv' | ||||
|             compress: 'true' | ||||
|             dest: 'dist' | ||||
|       - name: Create Release | ||||
|         id: create_release | ||||
|         uses: actions/create-release@v1 | ||||
|         env: | ||||
|           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
|         with: | ||||
|           tag_name: ${{ github.ref }} | ||||
|           release_name: Release ${{ github.ref }} | ||||
|           draft: false | ||||
|           prerelease: ${{ contains(github.ref, 'pre') }} | ||||
|       - name: Upload Release Assets | ||||
|         id: upload-release-asset  | ||||
|         uses: actions/upload-release-asset@v1 | ||||
|         env: | ||||
|           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
|         with: | ||||
|           upload_url: ${{ steps.create_release.outputs.upload_url }} | ||||
|           file: dist/* | ||||
|           overwrite: true | ||||
|           file_glob: true | ||||
		Reference in New Issue
	
	Block a user
	