Attempt build on individual respective platforms
This commit is contained in:
parent
bc3abcea35
commit
d8fb77b97d
1 changed files with 71 additions and 10 deletions
81
.github/workflows/main.yml
vendored
81
.github/workflows/main.yml
vendored
|
@ -8,8 +8,66 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build:
|
build-linux:
|
||||||
name: Cross-Compile and Release
|
name: Linux Build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: sudo apt install gcc 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: Run Builds
|
||||||
|
run: |
|
||||||
|
rm -rf ./out
|
||||||
|
./build.sh linux server
|
||||||
|
# ./build.sh linux desktop - Linux desktop build is not currently supported.
|
||||||
|
- name: Upload Build Artifact
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
# Artifact name
|
||||||
|
# name: # optional
|
||||||
|
path: ./out/**/*
|
||||||
|
|
||||||
|
build-darwin:
|
||||||
|
name: Darwin Build
|
||||||
|
runs-on: macos-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
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: Run Builds
|
||||||
|
run: |
|
||||||
|
rm -rf ./out
|
||||||
|
./build.sh darwin server
|
||||||
|
./build.sh darwin desktop
|
||||||
|
- name: Upload Build Artifact
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
# Artifact name
|
||||||
|
# name: # optional
|
||||||
|
path: ./out/**/*
|
||||||
|
|
||||||
|
build-windows:
|
||||||
|
name: Windows Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
|
@ -24,11 +82,14 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version: 1.14
|
go-version: 1.14
|
||||||
-
|
-
|
||||||
name: Cross-Compile & Execute GoReleaser
|
name: Run Builds
|
||||||
run: |
|
run: |
|
||||||
docker run --rm --privileged \
|
rm -rf ./out
|
||||||
-e GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} \
|
./build.sh windows server
|
||||||
-v $PWD:/go/src/github.com/postwoman-io/postwoman-proxy \
|
./build.sh windows desktop
|
||||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
- name: Upload Build Artifact
|
||||||
-w /go/src/github.com/postwoman-io/postwoman-proxy \
|
uses: actions/upload-artifact@v2
|
||||||
mailchain/goreleaser-xcgo --snapshot --rm-dist
|
with:
|
||||||
|
# Artifact name
|
||||||
|
# name: # optional
|
||||||
|
path: ./out/**/*
|
||||||
|
|
Loading…
Reference in a new issue