aebdc71a7f
Former-commit-id: f086f192fbe028f3054ab6113392eff9d7269a90 Former-commit-id: 199bfa3df00c96300d82961485a2bea9b7d8a9cc [formerly 86b98c65172bd59459165eb6ed6ebafecdded488] [formerly 1245806acb89090ed36623066723df1f9867858b [formerly 261397eca451ee959e4e63058df179a3e1fbdb75 [formerly 261397eca451ee959e4e63058df179a3e1fbdb75 [formerly 261397eca451ee959e4e63058df179a3e1fbdb75 [formerly 4b889d2408303488c759ea8855240b1a2eb130e5]]]]] Former-commit-id: 245911230247f2c61c05aa11914fcffbe3f7a325 [formerly edf7b83577a5e950b0a040939a8a6fb93571b4e2] Former-commit-id: 37a1962a674a00cedbf620656a346f7397beb224 Former-commit-id: 9f99f13b06ff257e42f4f73379b57f5d01cf9787 Former-commit-id: 920e816ea34cd809c7e20f62e1f00cf3ca1cf9f1 Former-commit-id: dd32a5a5b4d31b7c5c92bc141afd36e62ef59a7a [formerly e34aa2f65f84d3778f7140f56cbae80188ed3316] Former-commit-id: 2390298dcc5298ed53169ad6a64f1a08582fa522
69 lines
1.5 KiB
YAML
69 lines
1.5 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:latest .
|
|
docker run --rm -v $(pwd):/data 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@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
|