-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'strato-emu:master' into delete_pipeline_cache
- Loading branch information
Showing
22 changed files
with
1,007 additions
and
817 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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# A workflow to verify the build on every push to the master branch | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Git Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Restore CCache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
max-size: 3Gi | ||
|
||
- name: Restore Gradle Cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.gradle/ | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/build.gradle') }}-${{ hashFiles('app/**/*.xml') }}-${{ hashFiles('app/**.kt', 'app/**.java') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle-${{ hashFiles('**/build.gradle') }}-${{ hashFiles('app/**/*.xml') }}- | ||
${{ runner.os }}-gradle-${{ hashFiles('**/build.gradle') }}- | ||
${{ runner.os }}-gradle- | ||
- name: Install Java 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' # Temurin should come pre-installed on GitHub-hosted runners | ||
java-version: '17' | ||
|
||
- name: Install Ninja Build | ||
run: | | ||
sudo apt-get install -y ninja-build | ||
ln -s /usr/bin/ninja . | ||
- name: Android Assemble | ||
env: | ||
CMAKE_C_COMPILER_LAUNCHER: "ccache" | ||
CMAKE_CXX_COMPILER_LAUNCHER: "ccache" | ||
CCACHE_COMPILERCHECK: "string:${{ env.NDK_VERSION }}" # Use NDK version instead of compiler timestamp | ||
run: ./gradlew --no-daemon --stacktrace --build-cache --parallel --configure-on-demand assembleMainlineRelease |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# A workflow to build and upload APKs for pull requests | ||
name: PR Build | ||
|
||
on: | ||
pull_request: | ||
types: [ opened, synchronize, reopened ] | ||
branches: [ master ] | ||
|
||
# Only allow the latest build to run for a given PR, and cancel any previous builds | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Git Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Restore CCache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
max-size: 3Gi | ||
|
||
- name: Restore Gradle Cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.gradle/ | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/build.gradle') }}-${{ hashFiles('app/**/*.xml') }}-${{ hashFiles('app/**.kt', 'app/**.java') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle-${{ hashFiles('**/build.gradle') }}-${{ hashFiles('app/**/*.xml') }}- | ||
${{ runner.os }}-gradle-${{ hashFiles('**/build.gradle') }}- | ||
${{ runner.os }}-gradle- | ||
- name: Install Java 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' # Temurin should come pre-installed on GitHub-hosted runners | ||
java-version: '17' | ||
|
||
- name: Install Ninja Build | ||
run: | | ||
sudo apt-get install -y ninja-build | ||
ln -s /usr/bin/ninja . | ||
- name: Android Assemble | ||
env: | ||
CMAKE_C_COMPILER_LAUNCHER: "ccache" | ||
CMAKE_CXX_COMPILER_LAUNCHER: "ccache" | ||
CCACHE_COMPILERCHECK: "string:${{ env.NDK_VERSION }}" # Use NDK version instead of compiler timestamp | ||
PR_NUMBER: ${{ github.event.number }} | ||
run: ./gradlew --no-daemon --stacktrace --build-cache --parallel --configure-on-demand assembleDevRelease assembleDevReldebug | ||
|
||
- name: Rename APKs | ||
if: ${{ vars.UPLOAD_PR_ARTIFACTS == 'true' }} | ||
run: | | ||
mv app/build/outputs/apk/dev/release/app-dev-release.apk strato-pr${{ github.event.number }}-release.apk | ||
mv app/build/outputs/apk/dev/reldebug/app-dev-reldebug.apk strato-pr${{ github.event.number }}-reldebug.apk | ||
- name: Upload Release APK | ||
if: ${{ vars.UPLOAD_PR_ARTIFACTS == 'true' }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: strato-pr${{ github.event.number }}-release.apk | ||
path: strato-pr${{ github.event.number }}-release.apk | ||
|
||
- name: Upload Debug APK | ||
if: ${{ vars.UPLOAD_PR_ARTIFACTS == 'true' }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: strato-pr${{ github.event.number }}-reldebug.apk | ||
path: strato-pr${{ github.event.number }}-reldebug.apk |
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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
// Copyright © 2023 Strato Team and Contributors (https://github.com/strato-emu/) | ||
|
||
#pragma once | ||
|
||
#include <common/base.h> | ||
|
||
namespace skyline { | ||
struct WRegister { | ||
u32 lower; | ||
u32 upper; | ||
|
||
constexpr operator u32() const { | ||
return lower; | ||
} | ||
|
||
void operator=(u32 value) { | ||
lower = value; | ||
upper = 0; | ||
} | ||
}; | ||
} |
Oops, something went wrong.