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:
|
on:
|
||||||
push:
|
push:
|
||||||
# tags:
|
# branches: [ master ]
|
||||||
# - 'v*'
|
# pull_request:
|
||||||
|
# branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release_build:
|
|
||||||
|
build:
|
||||||
|
name: Cross-Compile and Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
#-
|
-
|
||||||
# name: Installing getlantern/systray dependencies...
|
name: Checkout
|
||||||
# run: sudo apt install gcc gcc-multilib libgtk-3-dev libappindicator3-dev libwebkit2gtk-4.0-dev
|
uses: actions/checkout@v2
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Unshallow
|
||||||
uses: actions/checkout@v2
|
run: git fetch --prune --unshallow
|
||||||
-
|
-
|
||||||
name: Unshallow
|
name: Set up Go
|
||||||
run: git fetch --prune --unshallow
|
uses: actions/setup-go@v2
|
||||||
-
|
with:
|
||||||
name: Set up Go
|
go-version: 1.14
|
||||||
uses: actions/setup-go@v2
|
-
|
||||||
with:
|
name: Cross-Compile & Execute GoReleaser
|
||||||
go-version: 1.14
|
run: |
|
||||||
- name: Golang CGO cross compiler
|
docker run --rm --privileged \
|
||||||
uses: crazy-max/ghaction-xgo@v1.3.0
|
-e GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} \
|
||||||
with:
|
-v $PWD:/go/src/github.com/postwoman-io/postwoman-proxy \
|
||||||
# xgo version
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
# xgo_version: # optional, default is latest
|
-w /go/src/github.com/postwoman-io/postwoman-proxy \
|
||||||
|
mailchain/goreleaser-xcgo --snapshot --rm-dist
|
||||||
# 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
|
|
||||||
|
|
Loading…
Reference in a new issue