Merge branch 'master' of github.com:postwoman-io/postwoman-proxy
This commit is contained in:
commit
c0e1cee1af
1 changed files with 27 additions and 73 deletions
100
.github/workflows/main.yml
vendored
100
.github/workflows/main.yml
vendored
|
@ -1,80 +1,34 @@
|
|||
name: Generate Release Build
|
||||
name: Build Proxywoman
|
||||
|
||||
on:
|
||||
push:
|
||||
# tags:
|
||||
# - 'v*'
|
||||
# branches: [ master ]
|
||||
# pull_request:
|
||||
# branches: [ master ]
|
||||
|
||||
jobs:
|
||||
release_build:
|
||||
|
||||
build:
|
||||
name: Cross-Compile and Release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
#-
|
||||
# name: Installing getlantern/systray dependencies...
|
||||
# run: sudo apt install gcc gcc-multilib libgtk-3-dev libappindicator3-dev libwebkit2gtk-4.0-dev
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
-
|
||||
name: Unshallow
|
||||
run: git fetch --prune --unshallow
|
||||
-
|
||||
name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.14
|
||||
- name: Golang CGO cross compiler
|
||||
uses: crazy-max/ghaction-xgo@v1.3.0
|
||||
with:
|
||||
# xgo version
|
||||
# xgo_version: # optional, default is latest
|
||||
|
||||
# Go release to use for cross compilation
|
||||
#go_version: # optional, default is latest
|
||||
|
||||
# Destination folder to put binaries in
|
||||
dest: build # optional, default is build
|
||||
|
||||
# Sub-package to build if not root import
|
||||
#pkg: # optional
|
||||
|
||||
# Prefix to use for output naming. Default to package name
|
||||
#prefix: # optional
|
||||
|
||||
# Comma separated targets to build for. Example: windows/amd64,linux/386
|
||||
targets: windows/386,windows/amd64,linux/386,linux/amd64,darwin/amd64 # optional, default is */*
|
||||
|
||||
# Prints the names of packages as they are compiled
|
||||
v: true # optional, default is false
|
||||
|
||||
# Prints the build commands as compilation progresses
|
||||
x: true # optional, default is false
|
||||
|
||||
# Indicates which kind of object file to build
|
||||
#buildmode: # optional, default is default
|
||||
|
||||
# Arguments to pass on each go tool link invocation
|
||||
#ldflags: # optional
|
||||
#- name: (Gitflow) Changelog Generator
|
||||
# uses: homeday-de/github-action-changelog-generator@v1.0.0
|
||||
# with:
|
||||
# # As provided by Github Actions
|
||||
# token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Create Release
|
||||
uses: actions/create-release@v1.0.0
|
||||
id: create_release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ github.ref }}
|
||||
release_name: Release ${{ github.ref }}
|
||||
#body: ${{ steps.generate_changelog.outputs.changelog }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
- name: xbin - Cross Binary Releaser
|
||||
uses: GlenTiki/xbin-release-action@v1.0.0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
assets_path: build
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
-
|
||||
name: Unshallow
|
||||
run: git fetch --prune --unshallow
|
||||
-
|
||||
name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.14
|
||||
-
|
||||
name: Cross-Compile & Execute GoReleaser
|
||||
run: |
|
||||
docker run --rm --privileged \
|
||||
-e GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} \
|
||||
-v $PWD:/go/src/github.com/postwoman-io/postwoman-proxy \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-w /go/src/github.com/postwoman-io/postwoman-proxy \
|
||||
mailchain/goreleaser-xcgo --snapshot --rm-dist
|
||||
|
|
Loading…
Reference in a new issue