Skip to content

Reenable the self-updater. #67

Reenable the self-updater.

Reenable the self-updater. #67

Workflow file for this run

name: Build the updater
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build_windows:
runs-on: [self-hosted, Windows, x64, code-sign]
steps:
- name: πŸ“© Grab the code
uses: actions/checkout@v3
- name: πŸ—οΈ Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
cache: maven
- name: πŸ”¨ Compile the updater
run: bash build.sh compile
- name: πŸ“¦ Build the Windows artifact
run: bash build.sh dist-windows
- name: πŸ”¨ Create Windows installer
uses: joncloud/[email protected]
with:
script-file: "Installer.nsi"
- name: ✍️ Sign the Windows installer
shell: cmd
run: C:\signing\sign.bat dist\Casterlabs-Caffeinated-Setup.exe
- name: πŸ†™ Upload the Windows artifact (x86_64)
uses: actions/upload-artifact@v3
with:
name: Casterlabs-Caffeinated-windows-x86_64.zip
path: dist/artifacts/Casterlabs-Caffeinated-Updater-windows-x86_64.zip
- name: πŸ†™ Upload the Windows installer (x86_64)
uses: actions/upload-artifact@v3
with:
name: Casterlabs-Caffeinated-Setup.exe
path: dist/Casterlabs-Caffeinated-Setup.exe
build_macos:
runs-on: ubuntu-latest
steps:
- name: πŸ“© Grab the code
uses: actions/checkout@v3
- name: πŸ—οΈ Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
cache: maven
- name: πŸ”¨ Compile the updater
run: bash build.sh compile
- name: πŸ“¦ Build the macOS artifact
run: bash build.sh dist-macos
- name: πŸ†™ Upload the macOS artifact (aarch64)
uses: actions/upload-artifact@v3
with:
name: Casterlabs-Caffeinated-macos-aarch64.tar.gz
path: dist/artifacts/Casterlabs-Caffeinated-Updater-macos-aarch64.tar.gz
- name: πŸ†™ Upload the macOS artifact (x86_64)
uses: actions/upload-artifact@v3
with:
name: Casterlabs-Caffeinated-macos-x86_64.tar.gz
path: dist/artifacts/Casterlabs-Caffeinated-Updater-macos-x86_64.tar.gz
build_linux:
runs-on: ubuntu-latest
steps:
- name: πŸ“© Grab the code
uses: actions/checkout@v3
- name: πŸ—οΈ Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
cache: maven
- name: πŸ”¨ Compile the updater
run: bash build.sh compile
- name: πŸ“¦ Build the Linux artifact
run: bash build.sh dist-linux
- name: πŸ†™ Upload the Linux artifact (aarch64)
uses: actions/upload-artifact@v3
with:
name: Casterlabs-Caffeinated-gnulinux-aarch64.tar.gz
path: dist/artifacts/Casterlabs-Caffeinated-Updater-gnulinux-aarch64.tar.gz
- name: πŸ†™ Upload the Linux artifact (arm)
uses: actions/upload-artifact@v3
with:
name: Casterlabs-Caffeinated-gnulinux-arm.tar.gz
path: dist/artifacts/Casterlabs-Caffeinated-Updater-gnulinux-arm.tar.gz
- name: πŸ†™ Upload the Linux artifact (x86_64)
uses: actions/upload-artifact@v3
with:
name: Casterlabs-Caffeinated-gnulinux-x86_64.tar.gz
path: dist/artifacts/Casterlabs-Caffeinated-Updater-gnulinux-x86_64.tar.gz