2020-01-06 14:54:29 +00:00
|
|
|
name: Build bot
|
2020-01-04 22:27:04 +00:00
|
|
|
|
2020-01-04 22:33:49 +00:00
|
|
|
on: [push, pull_request]
|
2020-01-04 22:27:04 +00:00
|
|
|
|
|
|
|
jobs:
|
2020-01-06 14:54:29 +00:00
|
|
|
build-linux:
|
2020-01-04 22:27:04 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: actions/setup-haskell@v1
|
|
|
|
with:
|
|
|
|
ghc-version: '8.6.5'
|
|
|
|
cabal-version: '3.0'
|
2020-01-04 22:33:49 +00:00
|
|
|
|
2020-01-04 22:27:04 +00:00
|
|
|
- name: Build
|
|
|
|
run: |
|
2020-01-05 23:37:16 +00:00
|
|
|
docker build -t wstunnel .
|
2020-01-05 00:22:01 +00:00
|
|
|
docker run --rm -v $(pwd):/data wstunnel /bin/cp wstunnel /data
|
2020-01-04 22:58:44 +00:00
|
|
|
./wstunnel
|
2020-01-04 23:04:11 +00:00
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
with:
|
2020-01-06 14:54:29 +00:00
|
|
|
name: wstunnel-linux-x64
|
2020-01-04 23:04:11 +00:00
|
|
|
path: wstunnel
|
2020-01-06 14:54:29 +00:00
|
|
|
|
|
|
|
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
|