748b329514
* Bump to stackage LTS 19.2 for network >= 3.1.2 * Support network >= 3.1.2 * Disable docker login on forked repositories. * Update dockerfile. Former-commit-id: 34645524c3221a596fb59e8dbad4381f10f93933 Former-commit-id: bcc40487b5cc36af72bcccfabb77fc2fe3933377 [formerly 36e5a23cc5f50719fbc334741e41101527e44a32] [formerly 35b7f5ad0096ba3e1ba2b3946e9eb46d17b477c5 [formerly c1e83ef29175f48c1bc199405670ac70a85d7bfa [formerly c3d180e0a066c83db261f296055e0fc6485f85cd] [formerly 29ca68bf69f44df5770d665f1997fce6afe8c6a9] [formerly 29ca68bf69f44df5770d665f1997fce6afe8c6a9 [formerly 29ca68bf69f44df5770d665f1997fce6afe8c6a9 [formerly dd31ffea070f0cccf6fb8064ea6f445a2d8b3d7c]]]]] Former-commit-id: d9e2f84d44728723b9ddcbad5ae1d088fdf574b2 [formerly ccdba4b1ec6a29b032c7696f8d6893940f44c25c] Former-commit-id: 10137d6047496f188dc4d29f31ab21452aedb7ad Former-commit-id: 0549973a0980949a8743f6cac6ea5f265ccdd583 Former-commit-id: 061811becd00ed2022ed1c6c35c7aee484dccdf6 Former-commit-id: 20ac5d98e082c67e650a6bcf63d380ba08973ade [formerly 2ce99e6abc267a2f1db82ee0ed3f5ce762ecabb2] Former-commit-id: b1be9c6813f3c3f1a9ffa8cd3915954cbc902723
89 lines
2.4 KiB
YAML
89 lines
2.4 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
|
|
if: github.repository == 'erebe/wstunnel'
|
|
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: ${{ github.repository == 'erebe/wstunnel' && github.ref == 'refs/heads/master' }}
|
|
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
|