wstunnel/.github/workflows/build.yml
Romain GERARD d613fcd68e Disable build
Former-commit-id: 88b27d147c6c0b3a0a3b5113ceba73369f2eea83
Former-commit-id: 86fde1f6b6d42c33e14c090c595bcc12ad1e7aaf [formerly fb15b9772b5a94fe4c7fbe14c2b05cb55b59151f] [formerly dc96304f701090d2d2777ac3f971d2b30f02de4a [formerly 6b7e889da8fd689ca4b32cfc9704819f061423f8 [formerly 6b7e889da8fd689ca4b32cfc9704819f061423f8 [formerly 6b7e889da8fd689ca4b32cfc9704819f061423f8 [formerly 509146d0b2b4f1779fcb03d447709aac1b26c371]]]]]
Former-commit-id: cc9f8c27e6539668e1233d5c31c5518fe6dfacfd [formerly 6903da4cfecddabf9e3da1798a4cf182cd6ba784]
Former-commit-id: a7f51562786f0bffdbc009ba2c07af1a7635f448
Former-commit-id: 372699bd174d3f60609f6f7d884364ace33c2b62
Former-commit-id: 8f63185c9f31edb7e1fecaf6b2635144f626630b
Former-commit-id: 91dbc4e5fc18f4dab8103146e8defc2458da53ac [formerly 84cc52158c52e64ed0082b858433b77496ea65f1]
Former-commit-id: ffc7c18fa395af9173427dda8209df736061f071
2020-11-08 12:51:40 +01:00

88 lines
2.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: extract Artifact
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@v2
# - 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@v2
# - 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