Another try.

This commit is contained in:
Martín Lucas Golini
2025-04-26 15:03:04 -03:00
parent 1c055f356c
commit 7a6d5d174c

View File

@@ -58,55 +58,51 @@ jobs:
CC: gcc
CXX: g++
steps:
- name: Update Packages
- name: Install essentials
run: |
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y --no-install-recommends software-properties-common build-essential git ca-certificates sudo curl libfuse2 fuse
curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -
sudo apt-get install -y nodejs
sudo add-apt-repository -y universe
sudo add-apt-repository -y multiverse
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
apt-get install -y --no-install-recommends software-properties-common build-essential git ca-certificates
- name: Checkout Code
uses: actions/checkout@v4
with: { fetch-depth: 0, submodules: 'recursive', set-safe-directory: true }
- name: Configure Git Safe Directory and Verify
run: |
echo "--- Git Safe Directory Debug ---"
CONTAINER_WORKSPACE="/github/workspace"
echo "Workspace: ${{ github.workspace }}"
echo "User: $(whoami)"
echo "Workspace Owner:"
ls -ld "${{ github.workspace }}"
echo "Git Directory Owner:"
ls -ld "${{ github.workspace }}/.git"
echo "Current Git Global Config:"
git config --global --list || echo "No global config yet"
echo "Adding safe directory: ${{ github.workspace }}"
git config --global --add safe.directory "${{ github.workspace }}"
echo "Adding safe directory: ${CONTAINER_WORKSPACE}"
git config --global --add safe.directory "${CONTAINER_WORKSPACE}"
echo "New Git Global Config:"
git config --global --list
echo "Verifying safe directory setting:"
git config --global --get-all safe.directory
- name: Set Environment Variables
run: |
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
echo "/usr/lib/ccache" >> "$GITHUB_PATH"
echo "INSTALL_REF=${{ needs.release.outputs.version }}" >> "$GITHUB_ENV"
echo "RARCH=$(uname -m)" >> "$GITHUB_ENV"
echo $(ldd --version)
echo $(gcc --version)
- name: Install dependencies
run: |
sudo apt-get install -y gcc-13 g++-13 libdw-dev
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 10
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30
sudo update-alternatives --set cc /usr/bin/gcc
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30
sudo update-alternatives --set c++ /usr/bin/g++
sudo update-alternatives --config gcc
sudo update-alternatives --config g++
sudo apt-get install -y libfuse2 fuse premake4 mesa-common-dev libgl1-mesa-dev
apt-get install -y curl libfuse2 fuse premake4 mesa-common-dev libgl1-mesa-dev
curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -
apt-get install -y nodejs
add-apt-repository -y universe
add-apt-repository -y multiverse
add-apt-repository -y ppa:ubuntu-toolchain-r/test
apt-get update
apt-get install -y gcc-13 g++-13 libdw-dev
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 10
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 10
update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30
update-alternatives --set cc /usr/bin/gcc
update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30
update-alternatives --set c++ /usr/bin/g++
update-alternatives --config gcc
update-alternatives --config g++
bash projects/linux/scripts/install_sdl2.sh
- name: Build ecode
run: |