5769e6178d
Former-commit-id: 55b7ad94cd0c85cf05dcf4e25b5aa79dd996c2e0 Former-commit-id: 7a7d8db6486dcd110c7ed04920ab2c3a274eff84 [formerly e884d6a991d23d09894cdcd990ae13ef3c5d65bc] [formerly e98d8972867c86f64eec4df2b9d454f6eea58ffd [formerly 98fa8de626f888bd6a86d1ece23b533066dc6d74 [formerly 98fa8de626f888bd6a86d1ece23b533066dc6d74 [formerly 98fa8de626f888bd6a86d1ece23b533066dc6d74 [formerly 4390d312206f05d90d3357ad4f5f113743640950]]]]] Former-commit-id: ff65882840d64e5cf7072b83aab38c4be8e0ef9b [formerly cfc431123753876d5e041c54effbc909a1159b57] Former-commit-id: a8827935fe6d09669ae671e9aea6d9937a197cf6 Former-commit-id: 013642b6915dd979b5f88237fc07ab0f9070b61b Former-commit-id: b58128cb712c65e89a8fb93bc626ef3e0e9e3cc9 Former-commit-id: 8d0768fae6c3c8c924ad45dbeb479dbc07f57926 [formerly b2aa58dc4dcce0f45b29d178932704bacf3ece7b] Former-commit-id: 6a7508a00cf5fd5187e331a6daf0301336d440a6
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
|