Skip to content

reset proxy handler #36

reset proxy handler

reset proxy handler #36

Workflow file for this run

name: FAST CI/CD
on:
push:
branches: [ "main" ]
tags: [ "v*" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Test
working-directory: ./fast-server
run: |
go test -v ./...
build:
needs: test
runs-on: ubuntu-latest
strategy:
matrix:
include:
- os: linux
arch: amd64
- os: darwin
arch: amd64
- os: windows
arch: amd64
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Build
working-directory: ./fast-server
run: |
GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -v -o fast-server-${{ matrix.os }}-${{ matrix.arch }}
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: fast-server-${{ matrix.os }}-${{ matrix.arch }}
path: fast-server/fast-server-${{ matrix.os }}-${{ matrix.arch }}
release:
needs: [build]
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download all artifacts
uses: actions/download-artifact@v3
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: |
fast-server-linux-amd64
fast-server-darwin-amd64
fast-server-windows-amd64
generate_release_notes: true