build: +rsync. Formatting yaml.

This commit is contained in:
Cory McWilliams 2025-02-02 21:51:18 -05:00
parent 9cb5cbcde9
commit 65b31e14f9

View File

@ -14,7 +14,8 @@ jobs:
- /opt/keys:/opt/keys - /opt/keys:/opt/keys
- /opt/deps:/opt/deps - /opt/deps:/opt/deps
steps: steps:
- run: > - name: Install build dependencies
run: >
apt update && apt install -y \ apt update && apt install -y \
build-essential \ build-essential \
clang \ clang \
@ -29,18 +30,23 @@ jobs:
libgpgme11 \ libgpgme11 \
libssl-dev \ libssl-dev \
mingw-w64 \ mingw-w64 \
rsync \
unzip \ unzip \
zip \ zip \
zlib1g-dev zlib1g-dev
- name: check out code - name: Get code
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- run: ln -s /opt/keys .keys - name: Setup environment
- run: ln -s /opt/deps/ios_toolchain deps/ios_toolchain run: |
ln -s /opt/keys .keys
ln -s /opt/deps/ios_toolchain deps/ios_toolchain
- name: Build documentation - name: Build documentation
run: mkdir -p out/html/; make docs run: |
- run: rsync -e "ssh -i /opt/keys/ssh.ed25519" out/html/ tfdocs@pildefriends:docs/html/ mkdir -p out/html/
make docs
rsync -e "ssh -i /opt/keys/ssh.ed25519" out/html/ tfdocs@pildefriends:docs/html/
- name: Setup JDK - name: Setup JDK
uses: actions/setup-java@v3 uses: actions/setup-java@v3
with: with:
@ -50,17 +56,12 @@ jobs:
uses: android-actions/setup-android@v3 uses: android-actions/setup-android@v3
with: with:
packages: 'tools platform-tools build-tools;34.0.0 platforms;android-34 ndk;26.3.11579264' packages: 'tools platform-tools build-tools;34.0.0 platforms;android-34 ndk;26.3.11579264'
- run: DOCKER_BUILDKIT=1 docker build . - name: Docker build
- run: ANDROID_SDK=$HOME/.android/sdk make -j`nproc` all dist docs run: DOCKER_BUILDKIT=1 docker build .
- uses: actions/upload-artifact@v3 - name: Build
with: run: ANDROID_SDK=$HOME/.android/sdk make -j`nproc` all dist docs
path: | - name: Upload artifacts
out/TildeFriends-release.fdroid.apk uses: actions/upload-artifact@v3
out/winrelease/tildefriends.standalone.exe
out/tildefriends-x86_64.AppImage
out/release/tildefriends.standalone
out/armrelease/tildefriends.standalone
- uses: actions/upload-artifact@v3
with: with:
name: dist name: dist
path: dist/* path: dist/*