Skip to content

Commit

Permalink
[GitHub] Update the Linux workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Feb 22, 2025
1 parent 4262d9b commit 68bc3ab
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 48 deletions.
57 changes: 11 additions & 46 deletions .github/workflows/linux-arm-opengl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,52 +10,17 @@ on:

jobs:
build:
runs-on: ubuntu-latest
name: Build on ${{ matrix.distro }} ${{ matrix.arch }}

# Run steps for both armv6 and aarch64
strategy:
matrix:
include:
- arch: aarch64
distro: ubuntu20.04
- arch: armv7
distro: ubuntu20.04
runs-on: ubuntu-22.04-arm

steps:
- uses: actions/checkout@v2
- uses: uraimo/run-on-arch-action@v2.0.9
name: Run Tests in ${{ matrix.distro }} ${{ matrix.arch }}
id: build
with:
arch: ${{ matrix.arch }}
distro: ${{ matrix.distro }}

# Not required, but speeds up builds
githubToken: ${{ github.token }}

# The shell to run commands with in the container
shell: /bin/bash

# Install some dependencies in the container. This speeds up builds if
# you are also using githubToken. Any dependencies installed here will
# be part of the container image that gets cached, so subsequent
# builds don't have to re-install them. The image layer is cached
# publicly in your project's package repository, so it is vital that
# no secrets are present in the container state or logs.
install: |
apt-get update -y -q
apt-get upgrade -y -q
apt-get install -y -q libasound2-dev libxinerama-dev libxrandr-dev libgl1-mesa-dev libxi-dev libxcursor-dev libudev-dev git build-essential imagemagick xvfb libwayland-dev wayland-protocols libxkbcommon-dev ninja-build
# Produce a binary artifact and place it in the mounted volume
run: |
echo " * Make Git happy"
git config --global --add safe.directory /home/runner/work/Kore/Kore
git config --global --add safe.directory /home/runner/work/Kore/Kore/v2
git config --global --add safe.directory /home/runner/work/Kore/Kore/v2/Tools/linux_arm
git config --global --add safe.directory /home/runner/work/Kore/Kore/v2/Tools/linux_arm64
echo " * Get Submodules"
./get_dlc
echo " * Compile"
./make -g opengl --kore . --from Tests/Empty --compile
- uses: actions/checkout@v4
- name: Apt Update
run: sudo apt update
- name: Apt Install
run: sudo apt-get install libasound2-dev libxinerama-dev libxrandr-dev libgl1-mesa-dev libxi-dev libxcursor-dev libudev-dev libwayland-dev wayland-protocols libxkbcommon-dev ninja-build --yes --quiet
- name: Get Submodules
run: ./get_dlc
- name: Compile
run: ./make -g opengl --kore . --from Tests/Empty --compile

4 changes: 2 additions & 2 deletions .github/workflows/linux-vulkan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Get LunarG key
run: wget -qO- https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo tee /etc/apt/trusted.gpg.d/lunarg.asc
- name: Get LunarG apt sources
run: sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-1.3.275-jammy.list https://packages.lunarg.com/vulkan/1.3.275/lunarg-vulkan-1.3.275-jammy.list
run: sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-noble.list http://packages.lunarg.com/vulkan/lunarg-vulkan-noble.list
- name: Apt Update
run: sudo apt update
- name: Apt Install
Expand Down

0 comments on commit 68bc3ab

Please sign in to comment.