|
19 | 19 | fetch-depth: 0 |
20 | 20 | - uses: coursier/setup-action@v1.2.0-M3 |
21 | 21 | with: |
| 22 | + apps: scalafmt |
22 | 23 | jvm: "graalvm-java17:21.3.0" |
23 | 24 | - name: Check formatting |
24 | | - run: ./bin/scalafmt --test |
| 25 | + run: scalafmt --test |
25 | 26 | bridges: |
26 | 27 | name: Test platform bridges |
27 | 28 | runs-on: ${{ matrix.os }} |
|
41 | 42 | - name: Tests |
42 | 43 | run: | |
43 | 44 | .github/setup-test-projects.sh &&\ |
44 | | - ./bin/sbt-ci.sh \ |
| 45 | + sbt \ |
45 | 46 | "jsBridge1/publishLocal" \ |
46 | 47 | "jsBridge1/test" |
47 | 48 | shell: bash |
@@ -74,123 +75,17 @@ jobs: |
74 | 75 | - name: Compile and test main projects |
75 | 76 | run: | |
76 | 77 | .github/setup-test-projects.sh &&\ |
77 | | - ./bin/sbt-ci.sh \ |
| 78 | + sbt \ |
78 | 79 | "frontend/test:compile" \ |
79 | 80 | "backend/test" \ |
80 | 81 | "frontend/testOnly bloop.ScalaVersionsSpec" \ |
81 | 82 | "frontend/testOnly -bloop.ScalaVersionsSpec" &&\ |
82 | | - ./bin/sbt-ci.sh \ |
| 83 | + sbt \ |
83 | 84 | "+test:compile" |
84 | 85 | shell: bash |
85 | 86 |
|
86 | | - publish-binaries: |
87 | | - name: Publish binaries for ${{ matrix.os }} |
88 | | - runs-on: ${{ matrix.os }} |
89 | | - if: github.event_name == 'push' |
90 | | - strategy: |
91 | | - fail-fast: false |
92 | | - matrix: |
93 | | - os: [ubuntu-latest, macOS-latest] |
94 | | - jdk: ["graalvm-java17:21.3.0"] |
95 | | - include: |
96 | | - - os: ubuntu-latest |
97 | | - artifact: bloop-linux |
98 | | - - os: macos-latest |
99 | | - artifact: bloop-macos |
100 | | - env: |
101 | | - CI: true |
102 | | - SKIP_TEST_RESOURCES_GENERATION: true |
103 | | - GITHUB_DEPLOY_KEY: ${{ secrets.GITHUB_DEPLOY_KEY }} |
104 | | - BLOOPOID_GITHUB_TOKEN: ${{ secrets.BLOOPOID_GITHUB_TOKEN }} |
105 | | - ARTIFACT_NAME: ${{ matrix.artifact }} |
106 | | - steps: |
107 | | - - uses: actions/checkout@v3 |
108 | | - with: |
109 | | - submodules: true |
110 | | - fetch-depth: 0 |
111 | | - - uses: coursier/setup-action@v1.2.0-M3 |
112 | | - with: |
113 | | - jvm: ${{ matrix.jdk }} |
114 | | - - name: Publish GraalVM Native artifacts |
115 | | - run: | |
116 | | - echo $JAVA_HOME |
117 | | - which gu |
118 | | - gu install native-image |
119 | | - ./bin/sbt-ci.sh "bloopgun/graalvm-native-image:packageBin" |
120 | | - mkdir bloop-artifacts |
121 | | - cp bloopgun/target/bloopgun-2.12/graalvm-native-image/bloopgun bloop-artifacts/$ARTIFACT_NAME |
122 | | - shell: bash |
123 | | - - uses: actions/upload-artifact@v3 |
124 | | - with: |
125 | | - name: bloop-artifacts |
126 | | - path: bloop-artifacts/${{ matrix.artifact }} |
127 | | - |
128 | | - publish-binaries-windows: |
129 | | - name: Publish binaries for ${{ matrix.os }} |
130 | | - runs-on: ${{ matrix.os }} |
131 | | - if: github.event_name == 'push' |
132 | | - strategy: |
133 | | - fail-fast: false |
134 | | - matrix: |
135 | | - os: [windows-latest] |
136 | | - jdk: ["graalvm-java17:21.3.0"] |
137 | | - include: |
138 | | - - os: windows-latest |
139 | | - artifact: bloop-windows |
140 | | - env: |
141 | | - CI: true |
142 | | - SKIP_TEST_RESOURCES_GENERATION: true |
143 | | - GITHUB_DEPLOY_KEY: ${{ secrets.GITHUB_DEPLOY_KEY }} |
144 | | - BLOOPOID_GITHUB_TOKEN: ${{ secrets.BLOOPOID_GITHUB_TOKEN }} |
145 | | - ARTIFACT_NAME: ${{ matrix.artifact }} |
146 | | - steps: |
147 | | - - name: Configure Pagefile |
148 | | - uses: al-cheb/configure-pagefile-action@v1.2 |
149 | | - - name: Refresh Pagefile |
150 | | - run: | |
151 | | - (Get-CimInstance Win32_PageFileUsage).AllocatedBaseSize |
152 | | - - uses: actions/checkout@v3 |
153 | | - with: |
154 | | - submodules: true |
155 | | - fetch-depth: 0 |
156 | | - - uses: coursier/setup-action@v1.2.0-M3 |
157 | | - with: |
158 | | - jvm: ${{ matrix.jdk }} |
159 | | - - name: Install GraalVM Native Image |
160 | | - run: | |
161 | | - echo $JAVA_HOME |
162 | | - "$JAVA_HOME\bin\gu.cmd" install native-image |
163 | | - shell: bash |
164 | | - - name: Pre-load sbt with bash |
165 | | - # FIXME: This step shouldn't be necessary, but sbt fails to find |
166 | | - # org.scala-lang.modules#scala-xml_2.12;1.2.0!scala-xml_2.12.jar when launched with |
167 | | - # cmd. |
168 | | - # Keep the sbt version in sync with `sbt-ci-release.bat`. |
169 | | - run: | |
170 | | - sbt -sbt-version 1.6.2 version |
171 | | - shell: bash |
172 | | - - name: Publish GraalVM Native artifacts |
173 | | - run: >- |
174 | | - "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && |
175 | | - "%CD%"\bin\sbt-ci-release.bat |
176 | | - shell: cmd |
177 | | - - name: Prepare generated Windows GraalVM binary |
178 | | - run: | |
179 | | - echo $ARTIFACT_NAME |
180 | | - ls bloopgun/target/bloopgun-2.12/graalvm-native-image/bloopgun.exe |
181 | | - mkdir bloop-artifacts |
182 | | - cp bloopgun/target/bloopgun-2.12/graalvm-native-image/bloopgun.exe bloop-artifacts/$ARTIFACT_NAME |
183 | | - shell: bash |
184 | | - - uses: actions/upload-artifact@v3 |
185 | | - with: |
186 | | - name: bloop-artifacts |
187 | | - path: bloop-artifacts/${{ matrix.artifact }} |
188 | | - |
189 | 87 | release: |
190 | 88 | name: Release version on ${{ matrix.os }} |
191 | | - needs: |
192 | | - - publish-binaries |
193 | | - - publish-binaries-windows |
194 | 89 | runs-on: ${{ matrix.os }} |
195 | 90 | if: github.event_name == 'push' |
196 | 91 | strategy: |
@@ -226,7 +121,7 @@ jobs: |
226 | 121 | path: bloop-artifacts |
227 | 122 | # - name: Publish docs and binaries to Maven Central |
228 | 123 | - name: Cut GitHub release # and update installers on ${{ matrix.os }} |
229 | | - run: ./bin/sbt-ci.sh ci-release |
| 124 | + run: sbt ci-release |
230 | 125 | env: |
231 | 126 | PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} |
232 | 127 | PGP_SECRET: ${{ secrets.PGP_SECRET }} |
|
0 commit comments