forked from MrStahlfelge/Jamepad
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lower GLIBC requirements by using building linux natives on ubuntu 18.04 docker #23
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
6b8e87f
Build Linux Natives on Ubuntu 18.04 Docker
theofficialgman fa28466
revert to checkout@v3 (newer nodejs incompatible with older distros g…
theofficialgman 9d09943
partial revert upstream mistakes b69eff0703ab7f7d2c0b92e8cf2e3ac65ea9…
theofficialgman 31d3ab4
add `_` to regex path match in build.gradle
theofficialgman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 | ||
theofficialgman marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This comment was marked as resolved.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, unfortunately nodejs 20 doesn't support bionic (glibc 2.17) so checkout v3 was necessary.
Unfortunately supporting these older systems gets more difficult by the day.
Personally I have given up on that for my own projects but I leave PRs like this open incase upstream repositories want to continue playing that game.