-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devel-release and release via github actions (#297)
* devel-release and release via github actions * junk paths during packaging * 1.17.6 * diff naming * clean up tests * cleanup consolidated test * store pointer to AppPool * remove test that was erroneously trying to boot puma under the hood
- Loading branch information
1 parent
ff4e254
commit 3643bbb
Showing
6 changed files
with
92 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,7 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [macos-latest, macos-11.0, ubuntu-latest] | ||
go-version: [1.17.2] | ||
ruby-version: [3.1] | ||
go-version: [1.17.6] | ||
|
||
name: ${{ matrix.os }} / go-${{ matrix.go-version }} | ||
steps: | ||
|
@@ -19,12 +18,12 @@ jobs: | |
|
||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby-version }} | ||
|
||
- uses: actions/checkout@v2 | ||
ruby-version: 3 | ||
|
||
- run: gem install puma | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- if: contains(matrix.os, 'macos') | ||
run: | | ||
sw_vers | ||
|
@@ -35,3 +34,36 @@ jobs: | |
- run: go mod download | ||
|
||
- run: go test -v -race -coverprofile=coverage.out -covermode=atomic -timeout=300s ./... | ||
|
||
devel-release: | ||
runs-on: macos-latest | ||
needs: test | ||
|
||
steps: | ||
- uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.17.6 | ||
|
||
- run: go install github.com/mitchellh/[email protected] | ||
- run: echo $(go env GOPATH)/bin >> $GITHUB_PATH | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- run: make release | ||
env: | ||
RELEASE: ${{ env.GITHUB_SHA }} | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: puma-dev-${{ env.GITHUB_RUN_NUMBER }}-linux-amd64 | ||
path: rel/linux_amd64/puma-dev | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: puma-dev-${{ env.GITHUB_RUN_NUMBER }}-darwin-amd64 | ||
path: rel/darwin_amd64/puma-dev | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: puma-dev-${{ env.GITHUB_RUN_NUMBER }}-darwin-arm64 | ||
path: rel/darwin_arm64/puma-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
release: | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.17.6 | ||
|
||
- run: go install github.com/mitchellh/[email protected] | ||
- run: echo $(go env GOPATH)/bin >> $GITHUB_PATH | ||
|
||
- name: get release version | ||
id: get_version | ||
run: echo ::set-output name=RELEASE_VERSION::${GITHUB_REF#refs/tags/v} | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- run: make release | ||
env: | ||
RELEASE: ${{ steps.get_version.outputs.RELEASE_VERSION }} | ||
|
||
- uses: ncipollo/release-action@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
artifacts: "pkg/*" | ||
allowUpdates: true | ||
omitBody: true | ||
prerelease: true | ||
removeArtifacts: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/bin/ | ||
/pkg/ | ||
/rel/ | ||
/vendor/pkg/ | ||
/tmp | ||
/coverage*.out | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.