Upgrade libraries (#2954) #197
This file contains hidden or 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: Nightly build | |
| on: | |
| push: | |
| branches: | |
| - 'master' | |
| jobs: | |
| build-and-test: | |
| if: github.repository_owner == 'winder' | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Cache the Maven packages to speed up build | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-m2 | |
| - name: Build and test | |
| run: ./mvnw clean install | |
| - name: Package | |
| run: | | |
| sudo apt-get install -qq genisoimage | |
| ./mvnw package -pl ugs-classic assembly:assembly -DskipTests=true | |
| ./mvnw package -pl ugs-platform/application -P create-macosx-x64-package,create-macosx-aarch64-package,create-win32-package,create-win64-package,create-linux-x64-package,create-linux-arm-package,create-linux-aarch64-package -DskipTests=true | |
| # https://github.com/marketplace/actions/upload-to-github-release | |
| - name: Upload binaries to snapshot release | |
| uses: xresloader/upload-to-github-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| file: "ugs-classic/target/UniversalGcodeSender.zip;ugs-platform/application/target/macosx-*-ugs-platform-app-*.dmg;ugs-platform/application/target/linux-*-ugs-platform-app*.tar.gz;ugs-platform/application/target/win-ugs-platform-app-*.zip;ugs-platform/application/target/win64-ugs-platform-app-*.zip;ugs-platform/application/target/ugs-platform-app-*.zip" | |
| prerelease: true | |
| tag_name: "nightly" | |
| overwrite: true | |
| build-linux-x64: | |
| if: github.repository_owner == 'winder' | |
| needs: build-and-test | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Cache the Maven packages to speed up build | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-m2 | |
| - name: Build | |
| run: ./mvnw clean install -DskipTests | |
| - name: Package Linux | |
| run: ./mvnw package -pl ugs-fx -P fx-build-linux-x64 | |
| - name: Upload DEB binaries to snapshot release | |
| uses: xresloader/upload-to-github-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| file: "ugs-fx/target/installer/ugs-*.deb;ugs-fx/target/installer/ugs-*.rpm" | |
| prerelease: true | |
| tag_name: "nightly" | |
| overwrite: true | |
| build-linux-aarch64: | |
| if: github.repository_owner == 'winder' | |
| needs: build-and-test | |
| runs-on: ubuntu-24.04-arm | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Cache the Maven packages to speed up build | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-m2 | |
| - name: Build | |
| run: ./mvnw clean install -DskipTests | |
| - name: Package Linux | |
| run: ./mvnw package -pl ugs-fx -P fx-build-linux-aarch64 | |
| - name: Upload DEB binaries to snapshot release | |
| uses: xresloader/upload-to-github-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| file: "ugs-fx/target/installer/ugs-*.deb;ugs-fx/target/installer/ugs-*.rpm" | |
| prerelease: true | |
| tag_name: "nightly" | |
| overwrite: true | |
| build-macosx-x64: | |
| if: github.repository_owner == 'winder' | |
| needs: build-and-test | |
| runs-on: macos-13 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Cache the Maven packages to speed up build | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-m2 | |
| - name: Build | |
| run: ./mvnw clean install -DskipTests | |
| - name: Package Linux | |
| run: ./mvnw package -pl ugs-fx -P fx-build-macosx-x64 | |
| - name: Upload DMG binaries to snapshot release | |
| uses: xresloader/upload-to-github-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| file: "ugs-fx/target/installer/ugs-*.dmg" | |
| prerelease: true | |
| tag_name: "nightly" | |
| overwrite: true | |
| build-macosx-aarch64: | |
| if: github.repository_owner == 'winder' | |
| needs: build-and-test | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Cache the Maven packages to speed up build | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-m2 | |
| - name: Build | |
| run: ./mvnw clean install -DskipTests | |
| - name: Package Linux | |
| run: ./mvnw package -pl ugs-fx -P fx-build-macosx-aarch64 | |
| - name: Upload DMG binaries to snapshot release | |
| uses: xresloader/upload-to-github-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| file: "ugs-fx/target/installer/ugs-*.dmg" | |
| prerelease: true | |
| tag_name: "nightly" | |
| overwrite: true | |
| build-windows: | |
| if: github.repository_owner == 'winder' | |
| needs: build-and-test | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Cache the Maven packages to speed up build | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-m2 | |
| - name: Build | |
| run: ./mvnw clean install -DskipTests | |
| - name: Package Windows | |
| run: ./mvnw package -pl ugs-fx -P fx-build-windows | |
| - name: Upload binaries to snapshot release | |
| uses: xresloader/upload-to-github-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| file: "ugs-fx/target/installer/ugs-*.exe;ugs-fx/target/installer/ugs-*.msi" | |
| prerelease: true | |
| tag_name: "nightly" | |
| overwrite: true |