ee4f9b070b
Former-commit-id: 52b5582e3cb7158adfa9ff851bee074d4af47854 Former-commit-id: cb23d699dea197d6cd0c2c4bb1ae54cbb71627e0 [formerly eb1f8630bcf3a873035fea488907e7cb341fbd62] [formerly 5ad16e8cc654edb9423f80650e32279ad3a2d269 [formerly 47719e2a71a6113e75d5088cc9ee3e716ebdde65 [formerly 2f22e7cf6da7b09c12133cd114f22b8ca0b33992] [formerly 2f22e7cf6da7b09c12133cd114f22b8ca0b33992 [formerly 2f22e7cf6da7b09c12133cd114f22b8ca0b33992 [formerly 2880ef7d42505988df86103f8abcfe20550a0dc5]]]]] Former-commit-id: bb757b343f7575ece0a12fbc8b69633d7b25dd6e [formerly 632f3daf273f4ceeb478d8dda371a31d55b69524] Former-commit-id: 008f8de6c566cd0fef23cb8d531cb02a9800addc Former-commit-id: 2dc5fe89a24063182d735e312a0712f9c28aa428 Former-commit-id: 5da2d2c69f1632f8eba7ad2cd6b79a442666e1fc Former-commit-id: 900239bc3d761b77d5f8675df8f28ce93db76056 [formerly 854b69024933194e4052967512a1b848993aae58] Former-commit-id: 855125355dd05f0e9922a37422efb4b631bdc202
88 lines
2.1 KiB
YAML
88 lines
2.1 KiB
YAML
name: Build bot
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build-linux:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out the repo
|
|
uses: actions/checkout@v2
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v1
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.CR_PAT }}
|
|
|
|
- name: wstunnel-builder-cache
|
|
id: docker_build_wstunnel-cache
|
|
uses: docker/build-push-action@v2
|
|
with:
|
|
push: true
|
|
tags: ghcr.io/erebe/wstunnel:builder-cache
|
|
target: builder-cache
|
|
|
|
- name: wstunnel
|
|
id: docker_build_wstunnel
|
|
uses: docker/build-push-action@v2
|
|
with:
|
|
push: true
|
|
tags: ghcr.io/erebe/wstunnel:latest
|
|
|
|
- name: Build
|
|
run: |
|
|
docker run --rm -v $(pwd):/data ghcr.io/erebe/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@v2
|
|
|
|
# - 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@v2
|
|
|
|
# - 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
|