wstunnel/.github/workflows/build.yml
Romain GERARD 2d85d27ce4 update build
Former-commit-id: 62db8504f77891de1e886e7d2e23fa0ca524099f
Former-commit-id: fe3769fabd9f3f5e6bf8b6c5e34e1743a1c60b94 [formerly 42ce99880dafc6f696c6bdb9a2e7d003b524f286] [formerly bfafe6bab6e80ef827486ee6b23dba52c7fc4cc7 [formerly 244ae713c81f3c41738b5ee3e1059a396e887914 [formerly 244ae713c81f3c41738b5ee3e1059a396e887914 [formerly 244ae713c81f3c41738b5ee3e1059a396e887914 [formerly fe0132bfcd5fdc4db24b2f20ed636d44addbfcfa]]]]]
Former-commit-id: 4434dfe182878fd6e18542a8f8f3ec4eca77404a [formerly 58c060d27cf7d5c27750f11ac6832a88d6a3754f]
Former-commit-id: 7dba3886e8fb0d0459854cd323abee3a5a1df0f1
Former-commit-id: 99620952e7145938827bc4fb5672963a0aca647b
Former-commit-id: aa18a262f1b0ffa3a0b1cf937cdfd8caa47269b7
Former-commit-id: 36322c11ab58aa3af182dfd901f53ecd63db2c27 [formerly 968bf2fd1a4515bc5e14db996f97ed9e43ddafe3]
Former-commit-id: 6afb23f8b90a5800571d060cd550a49463cc2740
2020-11-08 12:56:15 +01:00

88 lines
2.2 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: 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