aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorswurl <swurl@swurl.xyz>2025-04-12 23:33:35 -0400
committerswurl <swurl@swurl.xyz>2025-04-14 14:17:58 -0400
commit52d851500c9ee82eeb7455373111038114b64c31 (patch)
treede1553b12dfad245cbba24ffb3971a5b1f981b6c /.github
parentb86644eae9926c8dfc2dd378f37e313114f7c80e (diff)
actions: Linux & Source builds (#26)
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/26 Co-authored-by: swurl <swurl@swurl.xyz> Co-committed-by: swurl <swurl@swurl.xyz> android build, fix appimage Signed-off-by: swurl <swurl@swurl.xyz>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml74
-rw-r--r--.github/workflows/license-header.yml2
2 files changed, 26 insertions, 50 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 378c09927d..3b3b7e4250 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,3 +1,6 @@
+# TODO: This document needs to be formatted,
+# appimage should use linuxdeploy probably
+# some stuff needs cleaned up etc
name: eden-build
on:
@@ -20,7 +23,7 @@ jobs:
- name: Upload
uses: forgejo/upload-artifact@v4
with:
- name: source
+ name: source.zip
path: artifacts/
windows:
runs-on: windows-latest
@@ -31,7 +34,7 @@ jobs:
run:
shell: ${{ (matrix.target == 'msys2' && 'msys2') || 'bash' }} {0}
env:
- CCACHE_DIR: ${{ github.workspace }}/.ccache
+ CCACHE_DIR: ${{ runner.workspace }}/.cache/.ccache
CCACHE_COMPILERCHECK: content
CCACHE_SLOPPINESS: time_macros
OS: windows
@@ -40,14 +43,9 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive
- fetch-depth: 0
- - name: Set up ccache
- uses: actions/cache@v4
- with:
- path: ${{ env.CCACHE_DIR }}
- key: ${{ runner.os }}-${{ matrix.target }}-ccache-${{ github.sha }}
- restore-keys: |
- ${{ runner.os }}-${{ matrix.target }}-ccache-
+ fetch-depth: 1
+ fetch-tags: true
+
- name: Set up vcpkg cache
uses: actions/cache@v4
with:
@@ -58,6 +56,7 @@ jobs:
key: ${{ runner.os }}-${{ matrix.target }}-vcpkg-${{ hashFiles('**/CMakeLists.txt', '**/vcpkg.json') }}-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-${{ matrix.target }}-vcpkg-
+
- name: Set up MSVC
uses: ilammy/msvc-dev-cmd@v1
if: ${{ matrix.target == 'msvc' }}
@@ -143,12 +142,12 @@ jobs:
if: steps.build.outcome == 'success'
uses: forgejo/upload-artifact@v4
with:
- name: ${{ matrix.target }}
+ name: ${{ matrix.target }}.zip
path: artifacts/*
linux:
runs-on: linux
env:
- CCACHE_DIR: ${{ github.workspace }}/.ccache
+ CCACHE_DIR: /home/runner/.cache/ccache
CCACHE_COMPILERCHECK: content
CCACHE_SLOPPINESS: time_macros
OS: linux
@@ -157,25 +156,8 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive
- fetch-depth: 0
- - name: Set up cache
- uses: actions/cache@v4
- with:
- path: ${{ env.CCACHE_DIR }}
- key: ${{ runner.os }}-fresh-${{ github.sha }}
- restore-keys: |
- ${{ runner.os }}-fresh-
-
- - name: Set up vcpkg cache
- uses: actions/cache@v4
- with:
- path: |
- ${{ github.workspace }}/build/vcpkg_installed
- ${{ github.workspace }}/build/externals
- ${{ github.workspace }}/.vcpkg
- key: ${{ runner.os }}-fresh-vcpkg-${{ hashFiles('**/CMakeLists.txt', '**/vcpkg.json') }}-${{ github.run_id }}
- restore-keys: |
- ${{ runner.os }}-fresh-vcpkg-
+ fetch-depth: 1
+ fetch-tags: true
- name: Build
run: ./.ci/linux.sh
@@ -187,47 +169,41 @@ jobs:
- name: Upload Linux artifacts
uses: forgejo/upload-artifact@v4
with:
- name: linux
+ name: linux.zip
path: artifacts/*
+
android:
runs-on: android
+
env:
- CCACHE_DIR: ${{ github.workspace }}/.ccache
+ CCACHE_DIR: /home/runner/.cache/ccache
CCACHE_COMPILERCHECK: content
CCACHE_SLOPPINESS: time_macros
OS: android
TARGET: universal
+
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- fetch-depth: 0
- - name: Set up cache
- uses: actions/cache@v4
- with:
- path: |
- ~/.gradle/caches
- ~/.gradle/wrapper
- ${{ env.CCACHE_DIR }}
- key: ${{ runner.os }}-android-${{ github.sha }}
- restore-keys: |
- ${{ runner.os }}-android-
+ fetch-depth: 1
+ fetch-tags: true
+
- name: Set tag name
run: |
if [[ "$GITHUB_REF_TYPE" == "tag" ]]; then
echo "GIT_TAG_NAME=$GITHUB_REF_NAME" >> $GITHUB_ENV
fi
echo $GIT_TAG_NAME
+
- name: Deps
run: |
sudo apt-get update -y
sudo apt-get install ccache glslang-dev glslang-tools apksigner -y
+
- name: Build
run: JAVA_HOME=$JAVA_HOME_21_X64 ./.ci/android.sh
- env:
- ANDROID_KEYSTORE_B64: ${{ secrets.ANDROID_KEYSTORE_B64 }}
- ANDROID_KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }}
- ANDROID_KEYSTORE_PASS: ${{ secrets.ANDROID_KEYSTORE_PASS }}
+
- name: Package Android artifacts
run: |
GITDATE="$(git show -s --date=short --format='%ad' | sed 's/-//g')"
@@ -251,5 +227,5 @@ jobs:
- name: Upload Android artifacts
uses: forgejo/upload-artifact@v4
with:
- name: android
+ name: android.zip
path: artifacts/*
diff --git a/.github/workflows/license-header.yml b/.github/workflows/license-header.yml
index 843b7c833d..bc4d1d6023 100644
--- a/.github/workflows/license-header.yml
+++ b/.github/workflows/license-header.yml
@@ -6,7 +6,7 @@ on:
jobs:
license-header:
- runs-on: ubuntu-latest
+ runs-on: linux
container:
image: opensauce04/lime3ds-build:latest
options: -u 1001