Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
lolgab committed Jun 18, 2024
1 parent 8816eae commit 7466aa2
Showing 1 changed file with 9 additions and 68 deletions.
77 changes: 9 additions & 68 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,74 +7,15 @@ 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 }}
publish-sonatype:
if: github.repository == 'lolgab/snunit' && contains(github.ref, 'refs/tags/')
needs: build
Expand Down

0 comments on commit 7466aa2

Please sign in to comment.