Skip to content

Commit 077c9aa

Browse files
committed
squash
1 parent 3e3af41 commit 077c9aa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+6166
-805
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Publish Artifacts
2+
3+
on:
4+
push:
5+
tags:
6+
- '**'
7+
workflow_dispatch:
8+
9+
jobs:
10+
publish-sonatype:
11+
if: github.repository == 'com-lihaoyi/os-lib'
12+
runs-on: ubuntu-latest
13+
env:
14+
MILL_SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
15+
MILL_SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
16+
MILL_PGP_SECRET_BASE64: ${{ secrets.SONATYPE_PGP_PRIVATE_KEY }}
17+
MILL_PGP_PASSPHRASE: ${{ secrets.SONATYPE_PGP_PRIVATE_KEY_PASSWORD }}
18+
LANG: "en_US.UTF-8"
19+
LC_MESSAGES: "en_US.UTF-8"
20+
LC_ALL: "en_US.UTF-8"
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
- uses: actions/setup-java@v3
25+
with:
26+
distribution: 'temurin'
27+
java-version: 11
28+
- name: Publish to Maven Central
29+
run: ./mill -i mill.scalalib.PublishModule/
30+
31+
- name: Create GitHub Release
32+
id: create_gh_release
33+
uses: actions/[email protected]
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
36+
with:
37+
tag_name: ${{ github.ref }}
38+
release_name: ${{ github.ref }}
39+
draft: false

.github/workflows/run-tests.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: [ubuntu-latest, windows-latest, macos-latest]
17+
java-version: [11, 17]
18+
19+
runs-on: ${{ matrix.os }}
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
26+
- uses: actions/setup-java@v4
27+
with:
28+
distribution: 'temurin'
29+
java-version: ${{ matrix.java-version }}
30+
- name: Fetch millw launcher (Windows)
31+
run: curl -Lo mill.bat "https://raw.githubusercontent.com/lefou/millw/main/millw.bat"
32+
if: matrix.os == 'windows-latest'
33+
34+
- run: ./mill -i -k __.test
35+
if: matrix.os != 'windows-latest'
36+
- run: ./mill.bat -i -k __.jvm.__.test
37+
if: matrix.os == 'windows-latest'
38+
39+
check-bin-compat:
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@v4
43+
with:
44+
fetch-depth: 0
45+
46+
- uses: actions/setup-java@v4
47+
with:
48+
distribution: 'temurin'
49+
java-version: 11
50+
51+
- run: ./mill -i -k __.mimaReportBinaryIssues
52+
53+
check-formatting:
54+
runs-on: ubuntu-latest
55+
steps:
56+
- uses: actions/checkout@v4
57+
with:
58+
fetch-depth: 0
59+
60+
- uses: actions/setup-java@v4
61+
with:
62+
distribution: 'temurin'
63+
java-version: 17
64+
65+
- run: ./mill -i mill.scalalib.scalafmt.ScalafmtModule/checkFormatAll __.sources

.mill-version

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
0.11.6
2-
1+
0.12.0

.scalafmt.conf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "3.7.17"
1+
version = "3.8.3"
22

33
align.preset = none
44
align.openParenCallSite = false
@@ -19,3 +19,6 @@ newlines.source = keep
1919

2020
runner.dialect = scala213
2121

22+
project.excludePaths = [
23+
"glob:**/src-3/**"
24+
]

0 commit comments

Comments
 (0)