Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
boytacean
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
João Magalhães
boytacean
Merge requests
!34
Added Android support for Libretro
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Added Android support for Libretro
joamag/libretro-android
into
master
Overview
1
Commits
5
Pipelines
3
Changes
4
Merged
João Magalhães
requested to merge
joamag/libretro-android
into
master
1 year ago
Overview
1
Commits
5
Pipelines
3
Changes
1
Expand
Fixes
#35 (closed)
1
0
Merge request reports
Compare
version 1
version 2
77afe971
1 year ago
version 1
eb84c7fe
1 year ago
master (base)
and
version 2
latest version
e06c1d4c
5 commits,
1 year ago
version 2
77afe971
4 commits,
1 year ago
version 1
eb84c7fe
3 commits,
1 year ago
Show latest version
1 file
+
60
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.github/workflows/main.yml
+
60
−
0
Options
@@ -170,3 +170,63 @@ jobs:
-
name
:
Build release version
run
:
cd frontends/libretro && cargo build --release
if
:
matrix.rust-version == '1.71.0'
build-libretro-android
:
name
:
Build Libretro Android
timeout-minutes
:
30
strategy
:
matrix
:
rust-version
:
[
"
1.71.0"
,
"
latest"
]
runs-on
:
ubuntu-latest
container
:
rust:${{ matrix.rust-version }}
steps
:
-
name
:
Checkout code from repository
uses
:
actions/checkout@v3
-
name
:
Install Android NDK
uses
:
nttld/setup-ndk@v1
id
:
setup-ndk
with
:
ndk-version
:
r25c
-
name
:
Install Dependencies
run
:
|
apt-get update
apt-get install -y -q zip
-
name
:
Install Rust components
run
:
|
rustup component add rustfmt
rustup component add clippy
-
name
:
Print Rust information
run
:
rustc --version
-
name
:
Setup local NDK
run
:
|
mkdir -p ndk
${NDK_HOME}/build/tools/make_standalone_toolchain.py --api 26 --arch arm64 --install-dir ndk/arm64
${NDK_HOME}/build/tools/make_standalone_toolchain.py --api 26 --arch arm --install-dir ndk/arm
${NDK_HOME}/build/tools/make_standalone_toolchain.py --api 26 --arch x86 --install-dir ndk/x86
env
:
NDK_HOME
:
${{ steps.setup-ndk.outputs.ndk-path }}
-
name
:
Add Rust Android targets
run
:
|
rustup target add aarch64-linux-android
rustup target add armv7-linux-androideabi
rustup target add i686-linux-android
-
name
:
Verify Rust code format
run
:
cd frontends/libretro && cargo fmt --all -- --check
-
name
:
Verify Rust code linting
run
:
cd frontends/libretro && cargo clippy -- -D warnings -A unknown-lints
-
name
:
Run unit tests
run
:
cd frontends/libretro && cargo test
-
name
:
Build development version
run
:
|
cd frontends/libretro
cargo build --target=aarch64-linux-android
cargo build --target=armv7-linux-androideabi
cargo build --target=i686-linux-android
-
name
:
Build release version
run
:
|
cd frontends/libretro
cargo build --target=aarch64-linux-android --release
cargo build --target=armv7-linux-androideabi --release
cargo build --target=i686-linux-android --release
Loading