9103bc5a0f
remove stack installation as already present Former-commit-id: 4259a6475a9a3b41f93dc15055d427222d878773 Former-commit-id: ba38b8a03fc343afd403d0795426d53afeb49e5c [formerly 936fb331996e26774523a0d27a0d78a146ab9d34] [formerly f3181c3717e325528b9b44e833a49e98570a933d [formerly 92fe46222e39fa7e9d4fbc233a09c3d9bbaee59d [formerly 92fe46222e39fa7e9d4fbc233a09c3d9bbaee59d [formerly 92fe46222e39fa7e9d4fbc233a09c3d9bbaee59d [formerly 09a93f6f370b16df9dfef3bc6ce7210e2aaae848]]]]] Former-commit-id: fdf1ce26f96cf3c686a81ecbe8e4609058cedf44 [formerly 3581ad6250d533fdfa3fedc38b75339668879911] Former-commit-id: 8bd3b0d0e7f7f104f116738a2b11f35f29aa7904 Former-commit-id: f9cf45e513821afc3d7676e8b8bab977a83441a6 Former-commit-id: 6cfd24481c999e9f397643f3d30dfa0046a282a3 Former-commit-id: 3b02728bd9e6282aa55007e72bc634c9e610cf89 [formerly da877d02fd799c4558a81a15fe3f2c3b275b4e86] Former-commit-id: a14d68b5c839b3147c3636d689b20f0f60d11129
69 lines
1.4 KiB
YAML
69 lines
1.4 KiB
YAML
name: Build bot
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build-linux:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- uses: actions/setup-haskell@v1
|
|
with:
|
|
ghc-version: '8.6.5'
|
|
cabal-version: '3.0'
|
|
|
|
- name: Build
|
|
run: |
|
|
docker build -t wstunnel .
|
|
docker run --rm -v $(pwd):/data wstunnel /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
|