ca34a390c4
Former-commit-id: dc4855cab036b968332551af4f8b2880eea7b387 Former-commit-id: b8a3eeb02e75405d5e95c5685f743d9786243955 [formerly 3d977c63a145431f51f5599590e6647f6609e2ff] [formerly f441e591d4759084d59a968ae0160707d1e9f784 [formerly cc6c6bb231fff98ff0d946da912e50b7469f314a [formerly cc6c6bb231fff98ff0d946da912e50b7469f314a [formerly cc6c6bb231fff98ff0d946da912e50b7469f314a [formerly e85438cbbaea779949e111ad2bfbd032b9c57164]]]]] Former-commit-id: c83aef224f415a67c685843b30f11484f2f3004b [formerly 1e84d56275bcb6f5cb5a143caaafbbf73908f338] Former-commit-id: bcc0c5b05836498d91bdec6794bf5076a936aae1 Former-commit-id: 498f079944af74d030fc98cf3e71b4e7ab2e3ba9 Former-commit-id: 59c232c62567b0dfe974c23c492edbe75a2f4b30 Former-commit-id: 3fa5d482877ebe1168f3f5941fafc3061b856a13 [formerly 91ea48936bf4a0ca26361da1b5b68a0cadcecf5d] Former-commit-id: 71008397b3753440925a3fc384d8680f309a9441
88 lines
2 KiB
YAML
88 lines
2 KiB
YAML
name: Build bot
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build-linux:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out the repo
|
|
uses: actions/checkout@v2
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v1
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.CR_PAT }}
|
|
|
|
- name: wstunnel-builder-cache
|
|
id: docker_build_wstunnel-cache
|
|
uses: docker/build-push-action@v2
|
|
with:
|
|
push: true
|
|
tags: ghcr.io/erebe/wstunnel:builder-cache
|
|
target: builder-cache
|
|
|
|
- name: wstunnel
|
|
id: docker_build_wstunnel
|
|
uses: docker/build-push-action@v2
|
|
with:
|
|
push: true
|
|
tags: ghcr.io/erebe/wstunnel:latest
|
|
|
|
- name: Build
|
|
run: |
|
|
docker run --rm -v $(pwd):/data ghcr.io/erebe/wstunnel:latest /bin/cp /wstunnel /data/
|
|
./wstunnel
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
with:
|
|
name: wstunnel-linux-x64
|
|
path: wstunnel
|
|
|
|
build-windows:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
|
|
# - name: Install stack
|
|
# run: |
|
|
# curl -sSL https://get.haskellstack.org/ | sh
|
|
|
|
- name: Setup GHC
|
|
run: |
|
|
stack setup
|
|
|
|
- name: Build
|
|
run: |
|
|
stack install
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
with:
|
|
name: wstunnel-windows-x64.exe
|
|
path: C:\Users\runneradmin\AppData\Roaming\local\bin\wstunnel.exe
|
|
|
|
|
|
build-macos:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
|
|
# - name: Install stack
|
|
# run: |
|
|
# curl -sSL https://get.haskellstack.org/ | sh
|
|
|
|
- name: Setup GHC
|
|
run: |
|
|
stack setup
|
|
|
|
- name: Build
|
|
run: |
|
|
stack install
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
with:
|
|
name: wstunnel-macos
|
|
path: /Users/runner/.local/bin/wstunnel
|