bedf8bc8f7
Former-commit-id: ddb4d754bc79f332125d29dcb1f590ac2402bb1a Former-commit-id: 6ae4c38cd9d2f75815b24190f615f71269e26d3a [formerly 726c3c4afa4e6ce33f0b6b5d81f6950b70ab2d62] [formerly 56129d7d8514c9675ae1d82810230e19ee8ffc01 [formerly 4731ed5ab6923a60e169102fb20f5363c8ec5f9b [formerly 4731ed5ab6923a60e169102fb20f5363c8ec5f9b [formerly 4731ed5ab6923a60e169102fb20f5363c8ec5f9b [formerly 231f5849cf0e9370abefeb594025d5612e9619a6]]]]] Former-commit-id: 73e64875f421664b37469208291a02ae3baefc30 [formerly c06c1315f63b4fde995e05418de25f9bd24dff9e] Former-commit-id: c8cb0acc6d155f9f2dd197cbac14e7e8b38b7341 Former-commit-id: 2265f59428774eaa790871a52298810550e04f62 Former-commit-id: a7ef05dc94605be94b5b9c5325bb6d549b63c7ca Former-commit-id: 6fbe07352d070e3414697eb9164b3ca1b8bfef99 [formerly 1c0516f930fb16d0ee8ab00cafd4554d9a388afa] Former-commit-id: c878b06d1580d1422e834518aad7384a99954c86
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.8.3'
|
|
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
|