File tree Expand file tree Collapse file tree 2 files changed +75
-67
lines changed Expand file tree Collapse file tree 2 files changed +75
-67
lines changed Original file line number Diff line number Diff line change 1- name : ci
1+ name : Publish Artifacts
22
33on :
44 push :
5- branches :
6- - main
7- pull_request :
8- branches :
9- - main
5+ tags :
6+ - ' **'
7+ workflow_dispatch :
108
119jobs :
12- test :
13- strategy :
14- fail-fast : false
15- matrix :
16- os : [ubuntu-latest, windows-latest]
17- java-version : [8, 17]
18- include :
19- - os : macos-latest
20- java-version : 17
21- - os : macos-latest
22- java-version : 11
23-
24- runs-on : ${{ matrix.os }}
25-
26- steps :
27- - uses : actions/checkout@v4
28- with :
29- fetch-depth : 0
30-
31- - uses : actions/setup-java@v4
32- with :
33- distribution : ' temurin'
34- java-version : ${{ matrix.java-version }}
35- - name : Fetch millw launcher (Windows)
36- run : curl -Lo mill.bat "https://raw.githubusercontent.com/lefou/millw/main/millw.bat"
37- if : matrix.os == 'windows-latest'
38-
39- - run : ./mill -i -k __.test
40- if : matrix.os != 'windows-latest'
41- - run : ./mill.bat -i -k __.jvm.__.test
42- if : matrix.os == 'windows-latest'
43-
44- check-bin-compat :
45- runs-on : ubuntu-latest
46- steps :
47- - uses : actions/checkout@v4
48- with :
49- fetch-depth : 0
50-
51- - uses : actions/setup-java@v4
52- with :
53- distribution : ' temurin'
54- java-version : 8
55-
56- - run : ./mill -i -k __.mimaReportBinaryIssues
57-
58- check-formatting :
59- runs-on : ubuntu-latest
60- steps :
61- - uses : actions/checkout@v4
62- with :
63- fetch-depth : 0
64-
65- - uses : actions/setup-java@v4
66- with :
67- distribution : ' temurin'
68- java-version : 17
69-
70- - run : ./mill -i mill.scalalib.scalafmt.ScalafmtModule/checkFormatAll __.sources
71-
7210 publish-sonatype :
73- if : github.repository == 'com-lihaoyi/os-lib' && contains(github.ref, 'refs/tags/')
11+ if : github.repository == 'com-lihaoyi/os-lib'
7412 needs : test
7513 runs-on : ubuntu-latest
7614 env :
Original file line number Diff line number Diff line change 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]
17+ java-version : [8, 17]
18+ include :
19+ - os : macos-latest
20+ java-version : 17
21+ - os : macos-latest
22+ java-version : 11
23+
24+ runs-on : ${{ matrix.os }}
25+
26+ steps :
27+ - uses : actions/checkout@v4
28+ with :
29+ fetch-depth : 0
30+
31+ - uses : actions/setup-java@v4
32+ with :
33+ distribution : ' temurin'
34+ java-version : ${{ matrix.java-version }}
35+ - name : Fetch millw launcher (Windows)
36+ run : curl -Lo mill.bat "https://raw.githubusercontent.com/lefou/millw/main/millw.bat"
37+ if : matrix.os == 'windows-latest'
38+
39+ - run : ./mill -i -k __.test
40+ if : matrix.os != 'windows-latest'
41+ - run : ./mill.bat -i -k __.jvm.__.test
42+ if : matrix.os == 'windows-latest'
43+
44+ check-bin-compat :
45+ runs-on : ubuntu-latest
46+ steps :
47+ - uses : actions/checkout@v4
48+ with :
49+ fetch-depth : 0
50+
51+ - uses : actions/setup-java@v4
52+ with :
53+ distribution : ' temurin'
54+ java-version : 8
55+
56+ - run : ./mill -i -k __.mimaReportBinaryIssues
57+
58+ check-formatting :
59+ runs-on : ubuntu-latest
60+ steps :
61+ - uses : actions/checkout@v4
62+ with :
63+ fetch-depth : 0
64+
65+ - uses : actions/setup-java@v4
66+ with :
67+ distribution : ' temurin'
68+ java-version : 17
69+
70+ - run : ./mill -i mill.scalalib.scalafmt.ScalafmtModule/checkFormatAll __.sources
You can’t perform that action at this time.
0 commit comments