diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/linux.yml | 3 | ||||
-rw-r--r-- | .github/workflows/macos.yml | 2 | ||||
-rw-r--r-- | .github/workflows/release.yml | 139 |
3 files changed, 0 insertions, 144 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 076de74c..27df293a 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -69,9 +69,6 @@ jobs: go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage-ci/pool.txt -covermode=atomic ./pkg/pool go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage-ci/worker.txt -covermode=atomic ./pkg/worker go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage-ci/worker_stack.txt -covermode=atomic ./pkg/worker_watcher - go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage-ci/temporal.out -covermode=atomic ./tests/plugins/temporal - go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage-ci/temporal_protocol.out -covermode=atomic ./plugins/temporal/protocol - go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage-ci/temporal_workflow.out -covermode=atomic ./plugins/temporal/workflow go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage-ci/http_config.txt -covermode=atomic ./plugins/http/config go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage-ci/http.txt -covermode=atomic ./tests/plugins/http go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage-ci/informer.txt -covermode=atomic ./tests/plugins/informer diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 00b51598..77f9cfda 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -67,8 +67,6 @@ jobs: go test -v -race -tags=debug ./pkg/pool go test -v -race -tags=debug ./pkg/worker go test -v -race -tags=debug ./pkg/worker_watcher - go test -v -race -tags=debug ./plugins/temporal/protocol - go test -v -race -tags=debug ./plugins/temporal/workflow go test -v -race -tags=debug ./plugins/http/config go test -v -race -tags=debug ./tests/plugins/http go test -v -race -tags=debug ./tests/plugins/informer diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 785f40ad..00000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,139 +0,0 @@ -name: release - -on: - release: # Docs: <https://help.github.com/en/articles/events-that-trigger-workflows#release-event-release> - types: [published] - -jobs: - build: - name: Build for ${{ matrix.os }} (${{ matrix.arch }}, ${{ matrix.compiler }}) - runs-on: ubuntu-20.04 - strategy: - fail-fast: false - matrix: - os: [windows, freebsd, darwin] # linux, freebsd, darwin, windows - compiler: [gcc] # gcc, musl-gcc - archiver: [zip] # tar, zip - arch: [amd64] # amd64, 386 - include: - - os: linux - compiler: gcc - archiver: tar - arch: amd64 - - os: '' - compiler: musl-gcc # more info: <https://musl.libc.org/> - archiver: zip - arch: amd64 - steps: - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: 1.15.6 - - - name: Check out code - uses: actions/checkout@v2 - - - name: Install musl - if: matrix.compiler == 'musl-gcc' - run: sudo apt-get install -y musl-tools - - - name: Download dependencies - run: go mod download # `-x` means "verbose" mode - - - name: Generate builder values - id: values - run: | - echo "::set-output name=version::`echo ${GITHUB_REF##*/} | sed -e 's/^[vV ]*//'`" - echo "::set-output name=timestamp::`date +%FT%T%z`" - echo "::set-output name=binary-name::rr`[ ${{ matrix.os }} = 'windows' ] && echo '.exe'`" - - - name: Compile binary file - env: - GOOS: ${{ matrix.os }} - GOARCH: ${{ matrix.arch }} - CC: ${{ matrix.compiler }} - CGO_ENABLED: 0 - LDFLAGS: >- - -s - -X github.com/spiral/roadrunner/cmd/cli.Version=${{ steps.values.outputs.version }} - -X github.com/spiral/roadrunner/cmd/cli.BuildTime=${{ steps.values.outputs.timestamp }} - run: | - go build -trimpath -ldflags "$LDFLAGS" -o "./${{ steps.values.outputs.binary-name }}" ./cmd/main.go - stat "./${{ steps.values.outputs.binary-name }}" - - - name: Generate distributive directory name - id: dist-dir - run: > - echo "::set-output name=name::roadrunner-${{ steps.values.outputs.version }}-$( - [ ${{ matrix.os }} != '' ] && echo '${{ matrix.os }}' || echo 'unknown' - )$( - [ ${{ matrix.compiler }} = 'musl-gcc' ] && echo '-musl' - )-${{ matrix.arch }}" - - - name: Generate distributive archive name - id: dist-arch - run: > - echo "::set-output name=name::${{ steps.dist-dir.outputs.name }}.$( - case ${{ matrix.archiver }} in - zip) echo 'zip';; - tar) echo 'tar.gz';; - *) exit 10; - esac - )" - - - name: Create distributive - run: | - mkdir ${{ steps.dist-dir.outputs.name }} - mv "./${{ steps.values.outputs.binary-name }}" ./${{ steps.dist-dir.outputs.name }}/ - cp ./README.md ./CHANGELOG.md ./LICENSE ./${{ steps.dist-dir.outputs.name }}/ - - - name: Pack distributive using tar - if: matrix.archiver == 'tar' - run: tar -zcf "${{ steps.dist-arch.outputs.name }}" "${{ steps.dist-dir.outputs.name }}" - - - name: Pack distributive using zip - if: matrix.archiver == 'zip' - run: zip -r -q "${{ steps.dist-arch.outputs.name }}" "${{ steps.dist-dir.outputs.name }}" - - - name: Upload artifact - uses: actions/upload-artifact@v2 - with: - name: ${{ steps.dist-dir.outputs.name }} - path: ${{ steps.dist-arch.outputs.name }} - if-no-files-found: error - retention-days: 30 - - - name: Upload binaries to release - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ${{ steps.dist-arch.outputs.name }} - asset_name: ${{ steps.dist-arch.outputs.name }} - tag: ${{ github.ref }} - - docker: - name: Build docker image - runs-on: ubuntu-20.04 - steps: - - name: Check out code - uses: actions/checkout@v2 - - - name: Make docker login - run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_LOGIN }}" --password-stdin - - - name: Generate builder values - id: values - run: | - echo "::set-output name=version::`echo ${GITHUB_REF##*/} | sed -e 's/^[vV ]*//'`" - echo "::set-output name=timestamp::`date +%FT%T%z`" - - - name: Build image - run: | - docker build \ - --tag "spiralscout/roadrunner:${{ steps.values.outputs.version }}" \ - --build-arg "APP_VERSION=${{ steps.values.outputs.version }}" \ - --build-arg "BUILD_TIME=${{ steps.values.outputs.timestamp }}" \ - . - - - name: Push image into registry - run: docker push "spiralscout/roadrunner:${{ steps.values.outputs.version }}" |