Trigger build 3313 #96
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Packages | |
on: | |
push: | |
branches: ['master', 'BRANCH*'] | |
paths: ['ganttproject-builder/BUILD-HISTORY-MAJOR'] | |
env: | |
BUILD_NUMBER: 3312 | |
VERSION: 3.3.3312 | |
WINDOWS_APP_FOLDER_NAME: GanttProject-3.3 | |
MAC_APP_NAME: GanttProject 3.3 | |
MACOS_CERTIFICATE: ${{ secrets.PROD_MACOS_CERTIFICATE }} | |
MACOS_CERTIFICATE_PWD: ${{ secrets.PROD_MACOS_CERTIFICATE_PWD }} | |
MACOS_CERTIFICATE_NAME: ${{ secrets.PROD_MACOS_CERTIFICATE_NAME }} | |
MACOS_CI_KEYCHAIN_PWD: ${{ secrets.PROD_MACOS_CI_KEYCHAIN_PWD }} | |
MACOS_NOTARIZE_PASSWORD: ${{ secrets.PROD_MACOS_NOTARIZE_PWD }} | |
jobs: | |
Linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Checkout submodules | |
shell: bash | |
run: | | |
git submodule sync --recursive | |
git submodule update --init --force --recursive --depth=1 | |
echo "$VERSION" > ganttproject-builder/VERSION | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'liberica' | |
java-version: 17.0.12 | |
java-package: jdk+fx | |
cache: 'gradle' | |
- name: Build GanttProject | |
run: | | |
./gradlew distbin distzip | |
./gradlew -PwithJavafx distdeb | |
echo "===== PLUGINS =====" | |
ls ganttproject-builder/dist-bin/plugins/base | |
echo "===== DISTRIBUTIONS =====" | |
ls build/distributions | |
- id: 'auth' | |
uses: 'google-github-actions/auth@v1' | |
with: | |
credentials_json: '${{ secrets.GCP_CREDENTIALS }}' | |
- name: 'Set up Cloud SDK' | |
uses: 'google-github-actions/setup-gcloud@v1' | |
- name: 'Use gcloud CLI' | |
run: 'gcloud info' | |
- name: Upload Packages | |
run: | | |
#!/bin/sh | |
cd build/distributions | |
for f in *; do | |
gsutil cp $f gs://dl.ganttproject.biz && gsutil acl ch -u AllUsers:R gs://dl.ganttproject.biz/$f; | |
done; | |
Windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Checkout submodules | |
shell: bash | |
run: | | |
git submodule sync --recursive | |
git submodule update --init --force --recursive --depth=1 | |
echo "$VERSION" > ganttproject-builder/VERSION | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'liberica' | |
java-version: 17.0.12 | |
java-package: jdk+fx | |
cache: 'gradle' | |
- name: Build GanttProject | |
run: | | |
./gradlew distbin | |
echo "===== PLUGINS =====" | |
ls ganttproject-builder/dist-bin/plugins/base | |
- name: Build MSI installer | |
run: | | |
build-bin/package-win.bat | |
- id: 'auth' | |
uses: 'google-github-actions/auth@v1' | |
with: | |
credentials_json: '${{ secrets.GCP_CREDENTIALS }}' | |
- name: 'Set up Cloud SDK' | |
uses: 'google-github-actions/setup-gcloud@v1' | |
- name: 'Use gcloud CLI' | |
run: 'gcloud info' | |
- name: Upload Packages | |
run: | | |
gsutil cp build\ganttproject-$env:VERSION.msi gs://dl.ganttproject.biz | |
gsutil acl ch -u AllUsers:R gs://dl.ganttproject.biz/ganttproject-$env:VERSION.msi | |
- name: Install NSIS | |
run: | | |
iwr -useb get.scoop.sh -outfile 'install.ps1' | |
.\install.ps1 -RunAsAdmin | |
scoop update | |
scoop bucket add extras | |
scoop install nsis | |
- name: Print NSIS version | |
run: makensis -VERSION | |
- name: Print NSIS compile flags | |
run: makensis -HDRINFO | |
- name: Prepare files for NSIS | |
run: | | |
./gradlew distwin | |
echo "===== dist-win =====" | |
ls ganttproject-builder/dist-win | |
- name: Build NSIS package | |
run: | | |
cd ganttproject-builder\dist-win | |
makensis ganttproject.nsi | |
dir | |
mv ganttproject-$env:VERSION.exe ..\..\build | |
- name: Upload Packages | |
run: | | |
gsutil cp build\ganttproject-$env:VERSION.exe gs://dl.ganttproject.biz | |
gsutil acl ch -u AllUsers:R gs://dl.ganttproject.biz/ganttproject-$env:VERSION.exe | |
macOS_silicon: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Checkout submodules | |
shell: bash | |
run: | | |
git submodule sync --recursive | |
git submodule update --init --force --recursive --depth=1 | |
echo "$VERSION" > ganttproject-builder/VERSION | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'liberica' | |
java-version: 17.0.12 | |
java-package: jdk+fx | |
cache: 'gradle' | |
- name: Build GanttProject | |
run: | | |
./gradlew distbin | |
echo "===== PLUGINS =====" | |
ls ganttproject-builder/dist-bin/plugins/base | |
- name: Build GanttProject.app | |
run: | | |
./build-bin/package-mac.sh | |
./build/GanttProject.app/Contents/MacOS/GanttProject -h || echo "failed to run" | |
- name: Sign GanttProject.app | |
run: | | |
build-bin/notarize.sh $VERSION "BarD Software s.r.o" "$MACOS_NOTARIZE_PASSWORD" all | |
- id: 'auth' | |
uses: 'google-github-actions/auth@v1' | |
with: | |
credentials_json: '${{ secrets.GCP_CREDENTIALS }}' | |
- name: 'Set up Cloud SDK' | |
uses: 'google-github-actions/setup-gcloud@v1' | |
- name: 'Use gcloud CLI' | |
run: 'gcloud info' | |
- uses: actions/setup-python@v5 | |
- run: | | |
pip install dmgbuild | |
dmgbuild -s build-cfg/dmgbuild.py "$MAC_APP_NAME" ./ganttproject-$VERSION-silicon.dmg | |
gsutil cp ./ganttproject-$VERSION-silicon.dmg gs://dl.ganttproject.biz && gsutil acl ch -u AllUsers:R gs://dl.ganttproject.biz/ganttproject-$VERSION-silicon.dmg; | |
macOS_intel: | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Checkout submodules | |
shell: bash | |
run: | | |
git submodule sync --recursive | |
git submodule update --init --force --recursive --depth=1 | |
echo "$VERSION" > ganttproject-builder/VERSION | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'liberica' | |
java-version: 17.0.12 | |
java-package: jdk+fx | |
cache: 'gradle' | |
- name: Build GanttProject | |
run: | | |
./gradlew distbin | |
echo "===== PLUGINS =====" | |
ls ganttproject-builder/dist-bin/plugins/base | |
- name: Build GanttProject.app | |
run: | | |
./build-bin/package-mac.sh | |
./build/GanttProject.app/Contents/MacOS/GanttProject -h || echo "failed to run" | |
- name: Sign GanttProject.app | |
run: | | |
build-bin/notarize.sh $VERSION "BarD Software s.r.o" "$MACOS_NOTARIZE_PASSWORD" all | |
- id: 'auth' | |
uses: 'google-github-actions/auth@v1' | |
with: | |
credentials_json: '${{ secrets.GCP_CREDENTIALS }}' | |
- name: 'Set up Cloud SDK' | |
uses: 'google-github-actions/setup-gcloud@v1' | |
- name: 'Use gcloud CLI' | |
run: 'gcloud info' | |
- uses: actions/setup-python@v5 | |
- run: | | |
pip install dmgbuild | |
dmgbuild -s build-cfg/dmgbuild.py "$MAC_APP_NAME" ./ganttproject-$VERSION-intel.dmg | |
gsutil cp ./ganttproject-$VERSION-intel.dmg gs://dl.ganttproject.biz && gsutil acl ch -u AllUsers:R gs://dl.ganttproject.biz/ganttproject-$VERSION-intel.dmg; |