Skip to content

Commit

Permalink
Update Github actions (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
lolgab authored Apr 5, 2023
1 parent 9418c6c commit 069defc
Showing 1 changed file with 14 additions and 46 deletions.
60 changes: 14 additions & 46 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,15 @@ on:

jobs:
build:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Mill cache
uses: actions/cache@v2
- uses: actions/checkout@v3
- uses: coursier/cache-action@v6
- uses: actions/setup-java@v3
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
- uses: actions/setup-java@v1
with:
java-version: '8'
architecture: x64
java-version: "8"
architecture: "x64"
distribution: "temurin"
- name: Check formatting
run:
./mill --no-server --disable-ticker mill.scalalib.scalafmt.ScalafmtModule/checkFormatAll __.sources
Expand All @@ -55,7 +39,7 @@ jobs:
publish-sonatype:
if: github.repository == 'lolgab/mill-mima' && contains(github.ref, 'refs/tags/')
needs: build
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
env:
SONATYPE_PGP_PRIVATE_KEY: ${{ secrets.SONATYPE_PGP_PRIVATE_KEY }}
SONATYPE_PGP_PRIVATE_KEY_PASSWORD: ${{ secrets.SONATYPE_PGP_PRIVATE_KEY_PASSWORD }}
Expand All @@ -65,29 +49,13 @@ jobs:
LC_MESSAGES: "en_US.UTF-8"
LC_ALL: "en_US.UTF-8"
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
- uses: actions/setup-java@v1
- uses: actions/checkout@v3
- uses: coursier/cache-action@v6
- uses: actions/setup-java@v3
with:
java-version: '8'
architecture: x64
java-version: "8"
architecture: "x64"
distribution: "temurin"
- name: Publish to Maven Central
run: |
if [[ $(git tag --points-at HEAD) != '' ]]; then
Expand Down

0 comments on commit 069defc

Please sign in to comment.