From 1abd11a11a1d69b2ed3be1f311d98c7fbd380d6e Mon Sep 17 00:00:00 2001 From: theofficialgman <28281419+theofficialgman@users.noreply.github.com> Date: Wed, 5 Jul 2023 21:25:27 -0400 Subject: [PATCH] Build Linux Natives on Ubuntu 18.04 Docker --- .github/workflows/pushaction.yml | 27 +++++++++++++++++++++++++++ .github/workflows/releaseaction.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/.github/workflows/pushaction.yml b/.github/workflows/pushaction.yml index ce7887e..00a729e 100644 --- a/.github/workflows/pushaction.yml +++ b/.github/workflows/pushaction.yml @@ -58,10 +58,37 @@ jobs: linux: needs: macos runs-on: ubuntu-20.04 + container: ubuntu:18.04 env: ORG_GRADLE_PROJECT_GITHUB_USERNAME: "" ORG_GRADLE_PROJECT_GITHUB_API_TOKEN: "" steps: + - name: Install dependencies into minimal dockerfile + run: | + # ubuntu dockerfile is very minimal (only 122 packages are installed) + # need to install updated git (from official git ppa) + apt update + apt install -y software-properties-common + add-apt-repository ppa:git-core/ppa -y + # install dependencies expected by other steps + apt update + apt install -y git \ + curl \ + ca-certificates \ + wget \ + bzip2 \ + zip \ + unzip \ + xz-utils \ + openjdk-11-jdk-headless \ + maven \ + build-essential \ + ant sudo locales + # set Locale to en_US.UTF-8 (avoids hang during compilation) + locale-gen en_US.UTF-8 + echo "LANG=en_US.UTF-8" >> $GITHUB_ENV + echo "LANGUAGE=en_US.UTF-8" >> $GITHUB_ENV + echo "LC_ALL=en_US.UTF-8" >> $GITHUB_ENV - uses: actions/checkout@v3 with: submodules: 'recursive' diff --git a/.github/workflows/releaseaction.yml b/.github/workflows/releaseaction.yml index 0f6c890..577feb8 100644 --- a/.github/workflows/releaseaction.yml +++ b/.github/workflows/releaseaction.yml @@ -57,10 +57,37 @@ jobs: linux: needs: macos runs-on: ubuntu-20.04 + container: ubuntu:18.04 env: ORG_GRADLE_PROJECT_GITHUB_USERNAME: "" ORG_GRADLE_PROJECT_GITHUB_API_TOKEN: "" steps: + - name: Install dependencies into minimal dockerfile + run: | + # ubuntu dockerfile is very minimal (only 122 packages are installed) + # need to install updated git (from official git ppa) + apt update + apt install -y software-properties-common + add-apt-repository ppa:git-core/ppa -y + # install dependencies expected by other steps + apt update + apt install -y git \ + curl \ + ca-certificates \ + wget \ + bzip2 \ + zip \ + unzip \ + xz-utils \ + openjdk-11-jdk-headless \ + maven \ + build-essential \ + ant sudo locales + # set Locale to en_US.UTF-8 (avoids hang during compilation) + locale-gen en_US.UTF-8 + echo "LANG=en_US.UTF-8" >> $GITHUB_ENV + echo "LANGUAGE=en_US.UTF-8" >> $GITHUB_ENV + echo "LC_ALL=en_US.UTF-8" >> $GITHUB_ENV - uses: actions/checkout@v3 with: submodules: 'recursive'