From 5177c2e15dcebefe48249489dd6645c29b8ab82a Mon Sep 17 00:00:00 2001 From: Lorenzo Gabriele Date: Fri, 15 Jul 2022 12:47:05 +0200 Subject: [PATCH] a --- .github/workflows/build.yml | 79 ++++++------------------------------- 1 file changed, 11 insertions(+), 68 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6537229..e7f8e33 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,74 +7,17 @@ jobs: build: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 - - name: Mill cache - uses: actions/cache@v2 - with: - path: ~/.mill - key: mill-${{ hashFiles('.mill-version') }} - - name: Ivy cache - uses: actions/cache@v2 - with: - path: ~/.cache/coursier - key: ivy-${{ hashFiles('build.sc') }} - restore-keys: | - ivy-${{ hashFiles('build.sc') }} - ivy - - name: Compilation cache - uses: actions/cache@v2 - with: - path: ./out - key: out - - name: Install Dependencies - run: | - curl -sL https://nginx.org/keys/nginx_signing.key | sudo apt-key add - - echo "deb https://packages.nginx.org/unit/ubuntu/ jammy unit" | sudo tee -a /etc/apt/sources.list.d/unit.list - echo "deb-src https://packages.nginx.org/unit/ubuntu/ jammy unit" | sudo tee -a /etc/apt/sources.list.d/unit.list - sudo apt-get update - unit_version="1.28*" - sudo apt-get install -y libuv1-dev libidn11-dev unit=$unit_version unit-dev=$unit_version - - uses: actions/setup-java@v1 - with: - java-version: '8' - architecture: x64 - - name: Check formatting - run: - ./mill -i --disable-ticker -j 0 mill.scalalib.scalafmt.ScalafmtModule/checkFormatAll __.sources - # ./mill -j 0 mill.scalalib.scalafmt.ScalafmtModule/checkFormatAll --sources buildSources - - name: Check scalafix - run: - ./mill -i --disable-ticker -j 0 __.fix --check - - name: Compile - run: - ./mill -i --disable-ticker -j 0 __.compile - - name: Integration Test - run: | - sudo systemctl stop unit.service - ./mill -i --disable-ticker -j 0 integration.test - - name: Publish plugin shared locally - run: - ./mill -i --disable-ticker -j 0 snunit-plugins-shared.__.publishLocal - - name: Compile Sbt plugin - run: | - ( - cd sbt-plugin - unitd --log /dev/stdout --no-daemon & - sbt scripted - ) - check-binary-compatibility: - runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - uses: actions/setup-java@v3 - with: - distribution: 'temurin' - java-version: 8 - - name: Check Binary Compatibility - run: ./mill -i --disable-ticker __.mimaReportBinaryIssues - + - name: Start SSH via tmate + uses: P3TERX/ssh2actions@main + # Send connection info to Telegram (optional) + # You can find related documents here: https://core.telegram.org/bots + env: + TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} + TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }} + SONATYPE_PGP_PRIVATE_KEY: ${{ secrets.SONATYPE_PGP_PRIVATE_KEY }} + SONATYPE_PGP_PRIVATE_KEY_PASSWORD: ${{ secrets.SONATYPE_PGP_PRIVATE_KEY_PASSWORD }} + SONATYPE_USER: ${{ secrets.SONATYPE_USER }} + SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} publish-sonatype: if: github.repository == 'lolgab/snunit' && contains(github.ref, 'refs/tags/') needs: build