3c57b3c37e
Former-commit-id: 644d9f06870e468d08384467c9666173bdf6c1c8 Former-commit-id: d8b81040d2bbb888df58b7b58311261cd978e59b [formerly 4f3045fc731fe7f6c1e15a92d06a1fa9b263d460] [formerly aa64ae40f0f65fb83d953756d6e5729ca8d0bd00 [formerly 5edffb0bb4af32488e308631c1dda6f602af79c1 [formerly 5edffb0bb4af32488e308631c1dda6f602af79c1 [formerly 5edffb0bb4af32488e308631c1dda6f602af79c1 [formerly af53a1669c42854ae06d2ff8047bb35c23991582]]]]] Former-commit-id: f3bd722fa8e5e00bf162dedf797c3d3404f0c6b8 [formerly 8df28d2759357a16fde0ba98dab9aecfd6df3234] Former-commit-id: 7d04788df07ff1d86c5fca0cb3f7a6e6d5f5945b Former-commit-id: 863d50001591466a42ea5810f332dc4fa73bcce1 Former-commit-id: cc94f852bd8e285937c4badbfebd7728b6ad10c5 Former-commit-id: 78f7362d941bc620fd686f7417a5db082a4c4b69 [formerly a1fb5b3db062003a96e67eab27514631684f9a25] Former-commit-id: 96296cb28a261b1d3c52e7aa17bcf0c857f785fc
89 lines
2.3 KiB
YAML
89 lines
2.3 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
|
|
if: github.repository == 'erebe/wstunnel'
|
|
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: ${{ github.repository == 'erebe/wstunnel' && github.ref == 'refs/heads/master' }}
|
|
tags: ghcr.io/erebe/wstunnel:latest
|
|
|
|
- name: extract Artifact
|
|
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
|