Update apache-sshd to 2.20.0 #4203
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: build | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| java: [17, 25] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Cache | |
| uses: actions/cache@v6 | |
| env: | |
| cache-name: cache-sbt-libs | |
| with: | |
| path: | | |
| ~/.ivy2/cache | |
| ~/.sbt | |
| ~/.cache/coursier/v1 | |
| key: build-${{ env.cache-name }}-${{ hashFiles('build.sbt') }} | |
| - name: Set up JDK | |
| uses: actions/setup-java@v6 | |
| with: | |
| java-version: ${{ matrix.java }} | |
| distribution: temurin | |
| - name: Make sbt wrapper executable | |
| run: chmod +x ./sbt | |
| - name: Run tests | |
| run: ./sbt scalafmtSbtCheck scalafmtCheckAll test doc | |
| - name: Scala 3 | |
| run: ./sbt '++ 3.x' update # TODO | |
| - name: Build executable | |
| run: ./sbt executable | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: gitbucket-java${{ matrix.java }}-${{ github.sha }} | |
| path: ./target/executable/gitbucket.* |