From 720dcbeac7f21955c8ec86fc03c611dc652b2940 Mon Sep 17 00:00:00 2001 From: iphydf Date: Fri, 18 Feb 2022 23:05:23 +0000 Subject: [PATCH] chore: Add docker image builds for windows cross compiler. --- .github/workflows/docker.yml | 48 ++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index f3acf808851..3e501b3e38a 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -66,3 +66,51 @@ jobs: tags: toxchat/bootstrap-node:latest-websocket cache-from: type=registry,ref=toxchat/bootstrap-node:latest-websocket cache-to: type=inline + + docker-win32: + runs-on: ubuntu-latest + steps: + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Login to DockerHub + if: ${{ github.event_name == 'push' }} + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v2 + with: + context: "{{defaultContext}}:other/docker/windows" + push: ${{ github.event_name == 'push' }} + tags: toxchat/windows:win32 + cache-from: type=registry,ref=toxchat/windows:win32 + cache-to: type=inline + build-args: + - "SUPPORT_ARCH_i686=true" + - "SUPPORT_ARCH_x86_64=false" + - "SUPPORT_TEST=true" + + docker-win64: + runs-on: ubuntu-latest + steps: + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Login to DockerHub + if: ${{ github.event_name == 'push' }} + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v2 + with: + context: "{{defaultContext}}:other/docker/windows" + push: ${{ github.event_name == 'push' }} + tags: toxchat/windows:win64 + cache-from: type=registry,ref=toxchat/windows:win64 + cache-to: type=inline + build-args: + - "SUPPORT_ARCH_i686=false" + - "SUPPORT_ARCH_x86_64=true" + - "SUPPORT_TEST=true"