forked from MrStahlfelge/Jamepad
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from theofficialgman/docker
Lower GLIBC requirements by using building linux natives on ubuntu 18.04 docker
- Loading branch information
Showing
3 changed files
with
72 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,11 +50,38 @@ 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: | ||
- uses: actions/checkout@v4 | ||
- 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' | ||
|
||
|
@@ -67,10 +94,13 @@ jobs: | |
- name: Setup Gradle | ||
uses: gradle/[email protected] | ||
|
||
- run: echo "http://ports.ubuntu.com/ubuntu-ports" | sudo tee -a /etc/apt/apt-mirrors.txt | ||
- run: sudo sed -i 's/deb http/deb [arch=amd64,i386] http/' /etc/apt/sources.list | ||
- run: grep "ubuntu.com/ubuntu" /etc/apt/sources.list | sudo tee /etc/apt/sources.list.d/ports.list | ||
- run: sudo sed -i 's/amd64,i386/armhf,arm64/' /etc/apt/sources.list.d/ports.list | ||
- run: sudo sed -i 's#http://.*/ubuntu#http://ports.ubuntu.com/ubuntu-ports#' /etc/apt/sources.list.d/ports.list | ||
- name: Add extra platform architectures | ||
run: sudo dpkg --add-architecture i386; sudo dpkg --add-architecture armhf; sudo dpkg --add-architecture arm64 | ||
- run: sudo apt-get update || true | ||
- run: sudo apt-get update | ||
- name: Install Windows compilers | ||
run: sudo apt-get -yq install g++-mingw-w64-i686 g++-mingw-w64-x86-64 | ||
- name: Install Linux x86 compilers/libraries | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,11 +53,38 @@ 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: | ||
- uses: actions/checkout@v4 | ||
- 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' | ||
|
||
|
@@ -70,10 +97,13 @@ jobs: | |
- name: Setup Gradle | ||
uses: gradle/[email protected] | ||
|
||
- run: echo "http://ports.ubuntu.com/ubuntu-ports" | sudo tee -a /etc/apt/apt-mirrors.txt | ||
- run: sudo sed -i 's/deb http/deb [arch=amd64,i386] http/' /etc/apt/sources.list | ||
- run: grep "ubuntu.com/ubuntu" /etc/apt/sources.list | sudo tee /etc/apt/sources.list.d/ports.list | ||
- run: sudo sed -i 's/amd64,i386/armhf,arm64/' /etc/apt/sources.list.d/ports.list | ||
- run: sudo sed -i 's#http://.*/ubuntu#http://ports.ubuntu.com/ubuntu-ports#' /etc/apt/sources.list.d/ports.list | ||
- name: Add extra platform architectures | ||
run: sudo dpkg --add-architecture i386; sudo dpkg --add-architecture armhf; sudo dpkg --add-architecture arm64 | ||
- run: sudo apt-get update || true | ||
- run: sudo apt-get update | ||
- name: Install Windows compilers | ||
run: sudo apt-get -yq install g++-mingw-w64-i686 g++-mingw-w64-x86-64 | ||
- name: Install Linux x86 compilers/libraries | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters