02dd1eed55
Former-commit-id: 30ebacedb6cf4c35f704b8d0e74af66be2cb9435 Former-commit-id: 1787827a37e3143df3cbc5ea0eff4db88cf3e0b9 [formerly 0fdbce13e3e134de977acd1d13ac26fe4eb97399] [formerly 5244a03a800712525db9003ccab3b861fcee13a4 [formerly e907d587170cc47fdf0ff6c3cb868b6c3f36105f [formerly e907d587170cc47fdf0ff6c3cb868b6c3f36105f [formerly e907d587170cc47fdf0ff6c3cb868b6c3f36105f [formerly 38103e65ebd0ac328160b9c768ead2b4256e95ac]]]]] Former-commit-id: 3a2a24b87d59596ca9d1443c910660539c296793 [formerly 892e642b86cb0648822cde8a32c1d5299d7e12c7] Former-commit-id: 8a2990d283b92e97f8ffb2a24768937cfe5dda61 Former-commit-id: 146dad89731d9f944b146ad90d4b155ca0a44b4d Former-commit-id: 1fedd578f809333af9fdc20c8d384d75a8822138 Former-commit-id: 0dd657a70273114bf25041710d96e51895907de6 [formerly 86033156c85e169f47d235668e3302bccfed3387] Former-commit-id: b870117a21e8d91751970a756347c829f6df4e84
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
|