Add github action

Former-commit-id: ecf6c08d3b07c33486739c0dbdbe92b94fa95d79 [formerly 86bdb695c6dad79692ad0bf6a3f0943c95e4d54a] [formerly e976b43497ccda52960ba00a2c39214e851e2e9f [formerly 28da84974c059fca8ff4c109b3c090cb72d0c5f6]]
Former-commit-id: 40656a9041dcb577589bf4a6cfbb0c9c417b0a7e [formerly 05fd2a954fa10612e20c3c0056b844a8027188d8]
Former-commit-id: 374d916d46a57846c77df0ea67e4990c0b915736
Former-commit-id: c306cc94593b0428dd3b2acffdd3e30ddd1e27d0
Former-commit-id: 091c84f544ec82f979b4e07c3cff2266f1305f3b
Former-commit-id: dc78fc2935e81c6674e80a6c63434b2af097aaef [formerly 9c16de20c26bb45173c1ae5be9a864342a16a749]
Former-commit-id: 7523381366fb394b5fc7aa062306fd69cd50266c
This commit is contained in:
Σrebe - Romain GERARD 2023-10-15 18:42:15 +02:00
parent a578fbbe27
commit 7e31fcaa68
2 changed files with 1 additions and 89 deletions

View file

@ -1,89 +0,0 @@
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 cp $(docker create ghcr.io/erebe/wstunnel:latest /bin/sh -c 'sleep 5000'):/wstunnel .
./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

View file

@ -44,6 +44,7 @@ jobs:
steps:
- name: Create annotation for build error
if: contains(matrix.platform.target, 'linux')
run: sudo apt install musl-tools
- name: Checkout Git repo