Skip to content

Commit

Permalink
Revert "Resume 2.1.0-M4 workflow"
Browse files Browse the repository at this point in the history
This reverts commit b4b277f.
  • Loading branch information
alexarchambault committed Feb 2, 2022
1 parent b4b277f commit 94680bf
Showing 1 changed file with 163 additions and 0 deletions.
163 changes: 163 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,168 @@ on:
pull_request:

jobs:
test:
runs-on: ${{ matrix.OS }}
name: ${{ matrix.OS }} Scala ${{ matrix.SCALA_VERSION }} JDK ${{ matrix.JDK }}
strategy:
fail-fast: false
matrix:
OS: ["ubuntu-latest"]
JDK: ["8"]
SCALA_VERSION: ["2.12.15"]
include:
- JDK: "8"
SCALA_VERSION: "2.12.15"
OS: "windows-latest"
- JDK: "8"
SCALA_VERSION: "2.13.6"
OS: "ubuntu-latest"
- JDK: "11"
SCALA_VERSION: "2.12.15"
OS: "ubuntu-latest"
steps:
- name: Don't convert LF to CRLF during checkout
if: runner.os == 'Windows'
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
- uses: coursier/cache-action@v6.3
- uses: coursier/setup-action@v1.2.0-M1
with:
jvm: ${{ matrix.JDK }}
- run: sudo apt-get install -y nailgun
if: runner.os == 'Linux'
- run: brew install nailgun
if: runner.os == 'macOS'
# - run: .github/scripts/scala-native-setup.sh
# if: runner.os != 'Windows'
- run: ./mill -i jvmTests "$SCALA_VERSION"
shell: bash
env:
SCALA_VERSION: ${{ matrix.SCALA_VERSION }}
COURSIER_JNI: force

js-test:
runs-on: ubuntu-latest
name: Scala.JS Scala ${{ matrix.SCALA_VERSION }}
strategy:
fail-fast: false
matrix:
SCALA_VERSION: ["2.12.15", "2.13.6"]
steps:
- name: Don't convert LF to CRLF during checkout
if: runner.os == 'Windows'
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
- uses: actions/setup-node@v2
with:
node-version: '12'
- uses: coursier/cache-action@v6.3
- uses: coursier/setup-action@v1.2.0-M1
with:
jvm: 8
- run: npm install && ./mill -i jsTests "$SCALA_VERSION"
shell: bash
env:
SCALA_VERSION: ${{ matrix.SCALA_VERSION }}

bin-compat:
runs-on: ubuntu-latest
name: Binary compatibility
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
- uses: coursier/cache-action@v6.3
- uses: coursier/setup-action@v1.2.0-M1
with:
jvm: 8
- run: ./mill -i __.mimaReportBinaryIssues

website-check:
runs-on: ubuntu-latest
name: Website check
steps:
- name: Don't convert LF to CRLF during checkout
if: runner.os == 'Windows'
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
- uses: actions/setup-node@v2
with:
node-version: '12'
- uses: coursier/cache-action@v6.3
- uses: coursier/setup-action@v1.2.0-M1
with:
jvm: 8
- run: ./mill -i doc.generate --npm-install --yarn-run-build
env:
COURSIER_JNI: force

format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
- uses: coursier/cache-action@v6.3
- uses: coursier/setup-action@v1.2.0-M1
with:
jvm: 8
apps: scalafmt:3.0.0
- run: scalafmt --check

publish:
needs: ["test", "js-test", "bin-compat", "website-check", "format"]
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
- uses: coursier/cache-action@v6.3
- run: .github/scripts/gpg-setup.sh
env:
PGP_SECRET: ${{ secrets.PGP_SECRET }}
- uses: coursier/setup-action@v1.2.0-M1
with:
jvm: 8
- run: |
mv .mill-jvm-opts .mill-jvm-opts.bak
cat .mill-jvm-opts.bak | grep -v -- '-Xmx' > .mill-jvm-opts
echo '-Xmx2g' >> .mill-jvm-opts
- name: Release
run: |
./mill -i publishSonatype __.publishArtifacts || (
echo "Publishing exit with non-zero code, ignoring it" 1>&2
exit 0
)
env:
PGP_PASSWORD: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

generate-native-launchers:
name: Upload native launcher ${{ matrix.OS }}
needs: test
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ${{ matrix.OS }}
strategy:
Expand Down Expand Up @@ -37,6 +197,7 @@ jobs:

generate-linux-arm64-native-launcher:
name: Upload native launcher Linux ARM64
needs: test
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-18.04
steps:
Expand Down Expand Up @@ -100,6 +261,7 @@ jobs:

generate-jar-launchers:
name: Upload JAR launchers
needs: publish
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -164,6 +326,7 @@ jobs:

update-website-latest:
name: Update website (snapshot)
needs: publish
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 94680bf

Please sign in to comment.