Compare commits
10 Commits
i2p-androi
...
i2p-androi
Author | SHA1 | Date | |
---|---|---|---|
d99ed0e5da | |||
3881966ddb | |||
9de9f46489 | |||
149881522e | |||
df26d89310 | |||
707dcbbc78 | |||
812aea9873 | |||
aeb7614b62 | |||
9bf9d27c5a | |||
f2cfe4cee5 |
75
.github/workflows/ant.yml
vendored
Normal file
75
.github/workflows/ant.yml
vendored
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
# Mostly copied from https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-ant
|
||||||
|
# zlatinb
|
||||||
|
|
||||||
|
name: Java CI
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: GetText
|
||||||
|
run: sudo apt install gettext git
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Set up JDK 11
|
||||||
|
uses: actions/setup-java@v4
|
||||||
|
with:
|
||||||
|
java-version: '11'
|
||||||
|
distribution: 'temurin'
|
||||||
|
- name : Generate override.properties
|
||||||
|
run: |
|
||||||
|
rm -f override.properties
|
||||||
|
echo "build.built-by=GitHub Actions" >> override.properties
|
||||||
|
echo "noExe=true" >> override.properties
|
||||||
|
- name: build with Gradle
|
||||||
|
run: |
|
||||||
|
echo "i2psrc=$HOME/i2p.i2p" > routerjars/local.properties
|
||||||
|
git clone -b i2p-2.3.0 https://github.com/i2p/i2p.i2p "$HOME/i2p.i2p"
|
||||||
|
./gradlew assembleDebug
|
||||||
|
find . -name '*.apk'
|
||||||
|
- name: Upload i2p-debug-${{ github.sha }}.apk
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: i2p-debug.apk
|
||||||
|
path: ./app/build/outputs/apk/free/debug/app-free-debug.apk
|
||||||
|
|
||||||
|
trunk:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: GetText
|
||||||
|
run: sudo apt install gettext git
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Set up JDK 11
|
||||||
|
uses: actions/setup-java@v4
|
||||||
|
with:
|
||||||
|
java-version: '11'
|
||||||
|
distribution: 'temurin'
|
||||||
|
- name : Generate override.properties
|
||||||
|
run: |
|
||||||
|
rm -f override.properties
|
||||||
|
echo "build.built-by=GitHub Actions" >> override.properties
|
||||||
|
echo "noExe=true" >> override.properties
|
||||||
|
grep -v I2P_ gradle.properties > gradle.properties.update
|
||||||
|
echo "I2P_VERSION=2.4.0-1" >> gradle.properties.update
|
||||||
|
echo "I2P_ANDROID_VERSION=2.4.0-1" >> gradle.properties.update
|
||||||
|
cp -v gradle.properties.update gradle.properties
|
||||||
|
- name: build with Gradle
|
||||||
|
run: |
|
||||||
|
echo "i2psrc=$HOME/i2p.i2p" > routerjars/local.properties
|
||||||
|
git clone -b master https://github.com/i2p/i2p.i2p "$HOME/i2p.i2p"
|
||||||
|
bash -c "cd $HOME/i2p.i2p && ./installer/resources/maven-dev-release.sh 1"
|
||||||
|
./gradlew assembleDebug
|
||||||
|
find . -name '*.apk'
|
||||||
|
- name: Upload i2p-debug-${{ github.sha }}.apk
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: i2p-debug-${{ github.sha }}.apk
|
||||||
|
path: ./app/build/outputs/apk/free/debug/app-free-debug.apk
|
61
.github/workflows/release.yml
vendored
Normal file
61
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
name: Release
|
||||||
|
|
||||||
|
#on: [push]
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
# Sequence of patterns matched against refs/tags
|
||||||
|
tags:
|
||||||
|
- 'i2p-android-*.*.*' # Release i2p-firefox-1.2.3
|
||||||
|
- 'i2p-android-*.*.*-*' # Release i2p-firefox-1.2.3
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
sparse-checkout: |
|
||||||
|
CHANGELOG.md
|
||||||
|
sparse-checkout-cone-mode: false
|
||||||
|
- name: sleep 6 minutes
|
||||||
|
run: |
|
||||||
|
echo "sleeping 6 minutes to wait for artifacts"
|
||||||
|
sleep 1m
|
||||||
|
echo "sleeping 5 minutes to wait for artifacts"
|
||||||
|
sleep 1m
|
||||||
|
echo "sleeping 4 minutes to wait for artifacts"
|
||||||
|
sleep 1m
|
||||||
|
echo "sleeping 3 minutes to wait for artifacts"
|
||||||
|
sleep 1m
|
||||||
|
echo "sleeping 2 minutes to wait for artifacts"
|
||||||
|
sleep 1m
|
||||||
|
echo "sleeping 1 minutes to wait for artifacts"
|
||||||
|
sleep 1m
|
||||||
|
- name: Download artifacts
|
||||||
|
id: download-artifact
|
||||||
|
uses: dawidd6/action-download-artifact@v3
|
||||||
|
with:
|
||||||
|
skip_unpack: true
|
||||||
|
workflow: ant.yml
|
||||||
|
if_no_artifact_found: fail
|
||||||
|
# remove .zip file extension
|
||||||
|
- run: for f in *.zip; do unzip "$f"; rm "$f"; done
|
||||||
|
- run: echo "" | tee -a RELEASE.md
|
||||||
|
- run: echo "## Checksums" | tee -a RELEASE.md
|
||||||
|
- run: echo "" | tee -a RELEASE.md
|
||||||
|
- run: echo '```' | tee -a RELEASE.md
|
||||||
|
- run: sha256sum * | tee -a RELEASE.md
|
||||||
|
- run: echo '```' | tee -a RELEASE.md
|
||||||
|
- run: echo "" | tee -a RELEASE.md
|
||||||
|
- run: echo '```' | tee -a RELEASE.md
|
||||||
|
- run: file * | tee -a RELEASE.md
|
||||||
|
- run: echo '```' | tee -a RELEASE.md
|
||||||
|
- run: echo "" | tee -a RELEASE.md
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: ncipollo/release-action@v1
|
||||||
|
with:
|
||||||
|
artifacts: "*"
|
||||||
|
bodyFile: "RELEASE.md"
|
Reference in New Issue
Block a user