wstunnel/.github/workflows/build.yml
Workflow config file is invalid. Please check your config file: yaml: line 6: did not find expected key
Romain GERARD 6625a64317 Update build
Former-commit-id: adcc7d104fd966fd8946b56b431aeb7e4170d32f
Former-commit-id: acefe80acbc0c3adc91060d75e88b668918eccac [formerly 82a4f2b45e879af99281a04e488cb26c57765401] [formerly 624234a8d380eae27e8c7e586ca6da2eaa3ea250 [formerly 6bd6ed7be9d87c3ac0c26f9a92eae436777219d5 [formerly 6bd6ed7be9d87c3ac0c26f9a92eae436777219d5 [formerly 6bd6ed7be9d87c3ac0c26f9a92eae436777219d5 [formerly 9d90b25c8aaba4964ae91bf243a799762abe8f15]]]]]
Former-commit-id: ef020c9db1aaaa96d1aaa913164a3cb812edf0d8 [formerly 60e008efac9824444d000cca6aa7b65dae868efb]
Former-commit-id: 8436bb0a50f7272bee69c036a6c98e8fd14de24e
Former-commit-id: d5664daca91536ce8c6b98af699469d30d35ef29
Former-commit-id: f9592e43b902629e56840153f408edcc38a34107
Former-commit-id: f6c9d0f198406a7b95ad9a0cdbebf0ee1d8c8744 [formerly 704cb7b65479748865da4e21cc49242701f9d9c6]
Former-commit-id: a47fa6a6a5231d1de7284cda855ad1377f5f04a3
2020-11-08 12:28:48 +01:00

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