cae06aa847
Former-commit-id: a65367636deb2d8cbd86df1051af89dc80103306 Former-commit-id: 8db032e8dd9eabb1e907b2336aee354d5ca0e64e [formerly b07937c5d621617ada796277959859338a47f37e] [formerly 40acfe194db92800c42299125f4b93a3575fc123 [formerly 3bde1cafa7a697b387ba3b94fe15f0b3b0ec7f47 [formerly 4c3f0605129f239f9e43f3e1f1743a8c1db3bff4] [formerly af8aa7104737180e8727fe46b327789e445db14e] [formerly af8aa7104737180e8727fe46b327789e445db14e [formerly af8aa7104737180e8727fe46b327789e445db14e [formerly 8712021a0dd0e8b321088f4714702cfcd2e689b4]]]]] Former-commit-id: fe66f1004c0083b82fc3f5cc977739e53355dca3 [formerly 1dd965ec70c74511f8d4dfb89190e42bc595d9a7] Former-commit-id: 3ad147805d2c972a250efe2a6bb8985435769b03 Former-commit-id: ca77271afb8b6085128da4a49df18488f11a7900 Former-commit-id: 54201b8c101c51ad92c83cc8bb899ad2fee0f3d6 Former-commit-id: 9d441e494c59b4e29fe015c121994013cac67997 [formerly d95518bb87f693363069a3e65f58996f06a38718] Former-commit-id: 3da75ef4057be04bfda515000369e3967b0b6a18
46 lines
1,009 B
YAML
46 lines
1,009 B
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
|