2024-07-16 22:30:36 -04:00
|
|
|
name: Build Tilde Friends
|
2024-07-24 13:50:48 -04:00
|
|
|
run-name: ${{ gitea.actor }} running 🚀
|
2024-07-16 22:20:45 -04:00
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
2024-07-16 22:30:36 -04:00
|
|
|
Build-All:
|
2024-07-16 22:20:45 -04:00
|
|
|
runs-on: ubuntu-latest
|
2024-09-11 18:49:06 -04:00
|
|
|
container:
|
2025-02-01 08:34:42 -05:00
|
|
|
image: node:23-bookworm-slim
|
2025-02-01 14:17:15 -05:00
|
|
|
valid_volumes:
|
|
|
|
- '/opt/keys'
|
|
|
|
- '/opt/deps'
|
2024-09-11 18:49:06 -04:00
|
|
|
volumes:
|
2024-09-11 18:54:39 -04:00
|
|
|
- /opt/keys:/opt/keys
|
2025-02-01 12:50:31 -05:00
|
|
|
- /opt/deps:/opt/deps
|
2024-07-16 22:20:45 -04:00
|
|
|
steps:
|
2025-02-01 19:58:28 -05:00
|
|
|
- run: >
|
2025-02-01 19:59:18 -05:00
|
|
|
apt update && apt install -y \
|
|
|
|
build-essential \
|
|
|
|
clang \
|
|
|
|
cmake \
|
|
|
|
curl \
|
|
|
|
docker.io \
|
|
|
|
doxygen \
|
|
|
|
file \
|
|
|
|
gcc-aarch64-linux-gnu \
|
|
|
|
git \
|
|
|
|
graphviz \
|
|
|
|
libgpgme11 \
|
|
|
|
libssl-dev \
|
|
|
|
mingw-w64 \
|
|
|
|
unzip \
|
|
|
|
zip \
|
2025-02-01 19:58:28 -05:00
|
|
|
zlib1g-dev
|
2024-07-24 13:50:48 -04:00
|
|
|
- name: check out code
|
2024-07-16 22:20:45 -04:00
|
|
|
uses: actions/checkout@v4
|
2024-07-16 22:32:26 -04:00
|
|
|
with:
|
|
|
|
submodules: true
|
2024-09-11 19:33:37 -04:00
|
|
|
- run: ln -s /opt/keys .keys
|
2025-02-01 12:50:31 -05:00
|
|
|
- run: ln -s /opt/deps/ios_toolchain deps/ios_toolchain
|
2025-02-02 21:47:05 -05:00
|
|
|
- name: Build documentation
|
|
|
|
run: mkdir -p out/html/; make docs
|
2025-02-02 21:40:29 -05:00
|
|
|
- run: rsync -e "ssh -i /opt/keys/ssh.ed25519" out/html/ tfdocs@pildefriends:docs/html/
|
2024-09-25 19:49:52 -04:00
|
|
|
- name: Setup JDK
|
|
|
|
uses: actions/setup-java@v3
|
|
|
|
with:
|
|
|
|
java-version: '17'
|
|
|
|
distribution: 'temurin'
|
|
|
|
- name: Setup Android SDK
|
|
|
|
uses: android-actions/setup-android@v3
|
|
|
|
with:
|
|
|
|
packages: 'tools platform-tools build-tools;34.0.0 platforms;android-34 ndk;26.3.11579264'
|
2025-02-01 18:19:44 -05:00
|
|
|
- run: DOCKER_BUILDKIT=1 docker build .
|
2025-02-01 18:07:56 -05:00
|
|
|
- run: ANDROID_SDK=$HOME/.android/sdk make -j`nproc` all dist docs
|
2024-09-11 19:52:43 -04:00
|
|
|
- uses: actions/upload-artifact@v3
|
2024-09-11 19:33:37 -04:00
|
|
|
with:
|
2024-12-24 10:31:09 -05:00
|
|
|
path: |
|
|
|
|
out/TildeFriends-release.fdroid.apk
|
2025-01-02 13:00:42 -05:00
|
|
|
out/winrelease/tildefriends.standalone.exe
|
2024-12-24 10:31:09 -05:00
|
|
|
out/tildefriends-x86_64.AppImage
|
|
|
|
out/release/tildefriends.standalone
|
|
|
|
out/armrelease/tildefriends.standalone
|
2025-02-01 09:49:49 -05:00
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: dist
|
|
|
|
path: dist/*
|