75d40d9bdf
Former-commit-id: c4e349c025fd63ac720eb6ebeb9d1fd3d0dab257 Former-commit-id: c45a42b7b3ba7282fbd9d7141051c2f9f1ac406a [formerly 2505383ce431c982718436535cf30224895c1102] [formerly f5ab506692b65c4d3af81e48c6fe98653f49090b [formerly 83ef6db54e21cd7d1c55a08776dc793111dbde50 [formerly 83ef6db54e21cd7d1c55a08776dc793111dbde50 [formerly 83ef6db54e21cd7d1c55a08776dc793111dbde50 [formerly 22030068ee3db1b0d2a0e45f7fb03f5a8effd332]]]]] Former-commit-id: 803ae7021c3f838761cc22942d52c75d48609595 [formerly 8041f9d8ff7edca1100d6baa741424aa87212105] Former-commit-id: d1052a17f00ceab396655e0e0a85c8317de5456a Former-commit-id: 3a2d534f21a52597206081a599f6acb57a4015ef Former-commit-id: db48c4f31fb6956edcd6407054140d12acfbd12d Former-commit-id: 687e8ee7a40625c55ae792f03a29a03d9f93a610 [formerly f0da89d0d57fa801165e2dcdd0cad5d1de54b9db] Former-commit-id: 02feeac374949ea712c4ec05f9f504dcc1c2aeb2
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.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
|
|
|
|
|
|
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: ~/.local\bin\wstunnel
|