Compare commits

...

10 Commits

Author SHA1 Message Date
eyedeekay
2de622c06c Rename artifacts afte building 2024-10-25 20:10:53 -04:00
eyedeekay
82fa9f9b4d set up M1 Mac builds 2024-10-25 19:50:12 -04:00
eyedeekay
9bef7b35f5 force overwrite of unzipped files 2024-10-25 19:38:32 -04:00
eyedeekay
48348eb63d Make it build packages with the right version number 2024-10-25 19:15:12 -04:00
eyedeekay
bb6b93a556 Switch back to old artifact naming scheme, that's not where the problem is 2024-10-25 16:02:11 -04:00
eyedeekay
72de4bc4df Tray and make artifacts which are correctly named and versioned 2024-10-20 15:45:02 -04:00
eyedeekay
f6026af5ba maximize fetch depth in CI 2024-08-29 17:09:52 -04:00
eyedeekay
cb450487f8 Attempt to build with Java 22 in CI 2024-08-29 16:44:38 -04:00
eyedeekay
c65aea0ed9 don't try to pull own tags 2024-08-09 10:00:58 -04:00
eyedeekay
ec03127603 ignore failure on pull tags 2024-07-21 23:42:23 -04:00
4 changed files with 83 additions and 9 deletions

View File

@@ -5,10 +5,12 @@ on: [push]
jobs:
build:
runs-on: macos-latest
runs-on: macos-13
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
@@ -20,6 +22,67 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: I2P-${{ github.sha }}.dmg
path: I2P-1.0.dmg
path: I2P-*.dmg
build-22:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 22
uses: actions/setup-java@v4
with:
java-version: '22'
distribution: 'temurin'
- name: build with script
run: ./build.sh
- name: Upload I2P-${{ github.sha }}.dmg
uses: actions/upload-artifact@v4
with:
name: I2P-${{ github.sha }}-22.dmg
path: I2P-*.dmg
build-m1:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: build with script
run: ./build.sh
- name: Upload I2P-${{ github.sha }}.dmg
uses: actions/upload-artifact@v4
with:
name: I2P-${{ github.sha }}-m1.dmg
path: I2P-*.dmg
build-22-m1:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 22
uses: actions/setup-java@v4
with:
java-version: '22'
distribution: 'temurin'
- name: build with script
run: ./build.sh
- name: Upload I2P-${{ github.sha }}.dmg
uses: actions/upload-artifact@v4
with:
name: I2P-${{ github.sha }}-m1-jdk22.dmg
path: I2P-*.dmg

View File

@@ -60,7 +60,7 @@ jobs:
workflow: ant.yml
if_no_artifact_found: fail
# remove .zip file extension
- run: for f in *.zip; do unzip "$f"; rm "$f"; done
- run: for f in *.zip; do unzip -o "$f"; rm "$f"; done
- run: echo "" | tee -a docs/RELEASE.md
- run: echo "## Checksums" | tee -a docs/RELEASE.md
- run: echo "" | tee -a docs/RELEASE.md

View File

@@ -1,9 +1,18 @@
#!/bin/bash
set -e
git pull --tags
git describe --tags `git rev-list --tags --max-count=1` || exit 1
export GITHUB_TAG=$(git describe --tags `git rev-list --tags --max-count=1` | sed 's|i2p||g' | tr -d a-z-)
if echo "$GITHUB_TAG" | grep -q '.\..\..'; then
PUBLISH_VERSION="$GITHUB_TAG"
else
echo "github tag $GITHUB_TAG does not match version pattern"
# no way to guess here, so if it's unset it must default to the latest version number:
if [ -z "$PUBLISH_VERSION" ]; then
PUBLISH_VERSION="2.7.0"
fi
fi
if [ -z "$I2P_VERSION" ]; then
I2P_VERSION="i2p-$GITHUB_TAG"
fi
@@ -18,6 +27,8 @@ else
fi
fi
echo "using $PUBLISH_VERSION as our release version to placate jpackage"
if [ -z "$I2P_BUILD_NUMBER" ]; then
I2P_BUILD_NUMBER=1
fi
@@ -153,7 +164,7 @@ fi
# consider there might be some reason to re-enable this if an external maintainer arrives
#cp "$HERE"/resources/*.crt I2P.app/Contents/Resources/certificates/router
jpackage --name I2P \
jpackage --name I2P --app-version "$PUBLISH_VERSION" \
--java-options "-Xmx512m" \
--java-options "--add-opens java.base/java.lang=ALL-UNNAMED" \
--java-options "--add-opens java.base/sun.nio.fs=ALL-UNNAMED" \
@@ -165,5 +176,5 @@ jpackage --name I2P \
--mac-entitlements resources/entitlements.xml \
--input build --main-jar launcher.jar --main-class net.i2p.router.MacLauncher
ls -lah I2P*.dmg
ls -lahd I2P*
UNAME=$(uname -m)
cp -v I2P*.dmg "I2P-$PUBLISH_VERSION-$UNAME.dmg"

View File

@@ -9,9 +9,9 @@
# Uncomment/Edit this line to include the version number in the config file
I2P_VERSION=i2p-2.4.0
I2P_VERSION=i2p-2.7.0
# Uncomment/Edit this line to change the version number that you pass to jpackage
I2P_RELEASE_VERSION=2.4.0
I2P_RELEASE_VERSION=2.7.0
# Uncomment/Edit this line to include the build number in the config file
# I2P_BUILD_NUMBER=1