From d3e29c788674f126dbfd9e2aa4f8b9dbb6c750ab Mon Sep 17 00:00:00 2001 From: FriwiDev Date: Mon, 25 Oct 2021 12:14:36 +0200 Subject: [PATCH] Add 386 arch --- .github/workflows/build-linux.yml | 36 +++++++++++++++++++++++-------- DockerfileLinux | 14 +----------- 2 files changed, 28 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 5268bef..080cf7a 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -17,12 +17,6 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - - - name: Login to DockerHub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build run: | @@ -32,6 +26,30 @@ jobs: name: Export artifacts uses: actions/upload-artifact@v2 with: - name: linux-amd64.zip - path: | - out/binary_distrib.tar.gz + name: linux-amd64.tar.gz + path: out/binary_distrib.tar.gz + + + i386: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Set up QEMU + uses: docker/setup-qemu-action@master + with: + platforms: all + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - + name: Build + run: | + chmod +x compile_linux.sh + ./compile_linux.sh 386 + - + name: Export artifacts + uses: actions/upload-artifact@v2 + with: + name: linux-i386.tar.gz + path: out/binary_distrib.tar.gz + diff --git a/DockerfileLinux b/DockerfileLinux index d301ee5..cee99ab 100644 --- a/DockerfileLinux +++ b/DockerfileLinux @@ -1,18 +1,6 @@ FROM friwidev/jcefdocker:linux-latest AS stage -#Do you want to manually build cef to customize the build? -#0: Use CEF from prebuilt Spotify repository (supported by CEF-Downloader only for 386 and amd64) -#1: Compile CEF from source -#This value will be ignored when no download is available on this architecture! -ENV BUILD_CEF 0 - -#If you want to build with proprietary codecs, add the following to this variable: -# proprietary_codecs=1 ffmpeg_branding=Chrome -#Warning: Be aware of the legal implications by using proprietary codecs! -#(Not required for mp3/mp4 anymore!) -ENV GYP_DEFINES "" - -#Type to build: Debug or Release +#Specify a type to build: Debug or Release ENV BUILD_TYPE Release WORKDIR /builder