Skip to content

Commit 42f5623

Browse files
Merge pull request #108 from alexarchambault/clean-up
Clean-up
2 parents 0544fe2 + 59e79e3 commit 42f5623

File tree

159 files changed

+125
-19633
lines changed

Some content is hidden

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

159 files changed

+125
-19633
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ jobs:
1919
fetch-depth: 0
2020
- uses: coursier/setup-action@v1.2.0-M3
2121
with:
22+
apps: scalafmt
2223
jvm: "graalvm-java17:21.3.0"
2324
- name: Check formatting
24-
run: ./bin/scalafmt --test
25+
run: scalafmt --test
2526
bridges:
2627
name: Test platform bridges
2728
runs-on: ${{ matrix.os }}
@@ -41,7 +42,7 @@ jobs:
4142
- name: Tests
4243
run: |
4344
.github/setup-test-projects.sh &&\
44-
./bin/sbt-ci.sh \
45+
sbt \
4546
"jsBridge1/publishLocal" \
4647
"jsBridge1/test"
4748
shell: bash
@@ -74,123 +75,17 @@ jobs:
7475
- name: Compile and test main projects
7576
run: |
7677
.github/setup-test-projects.sh &&\
77-
./bin/sbt-ci.sh \
78+
sbt \
7879
"frontend/test:compile" \
7980
"backend/test" \
8081
"frontend/testOnly bloop.ScalaVersionsSpec" \
8182
"frontend/testOnly -bloop.ScalaVersionsSpec" &&\
82-
./bin/sbt-ci.sh \
83+
sbt \
8384
"+test:compile"
8485
shell: bash
8586

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-
18987
release:
19088
name: Release version on ${{ matrix.os }}
191-
needs:
192-
- publish-binaries
193-
- publish-binaries-windows
19489
runs-on: ${{ matrix.os }}
19590
if: github.event_name == 'push'
19691
strategy:
@@ -226,7 +121,7 @@ jobs:
226121
path: bloop-artifacts
227122
# - name: Publish docs and binaries to Maven Central
228123
- name: Cut GitHub release # and update installers on ${{ matrix.os }}
229-
run: ./bin/sbt-ci.sh ci-release
124+
run: sbt ci-release
230125
env:
231126
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
232127
PGP_SECRET: ${{ secrets.PGP_SECRET }}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Sbt Dependency Graph
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
submit-dependency-graph:
9+
name: Submit dependency graph
10+
runs-on: ubuntu-latest
11+
env:
12+
GITHUB_TOKEN: ${{ github.token }}
13+
permissions:
14+
contents: write
15+
steps:
16+
- uses: actions/checkout@v3
17+
with:
18+
submodules: true
19+
- uses: scalacenter/sbt-dependency-graph-action@v1

.gitignore

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
.idea/
2-
bin/.coursier
3-
bin/.scalafmt*
42
.vscode/
53

64
# Required because these are the proxies for the sourcedeps
@@ -22,17 +20,9 @@ target/
2220
.ensime
2321
.ensime_cache/
2422

25-
# The index where we store project mappings for local benchmarks
26-
.local-benchmarks
27-
2823
bloop-config/
2924
out/
3025
.DS_Store
31-
website/build/
32-
website/build/bloop-gh-pages/
33-
node_modules/
34-
package-lock.json
3526
.metals/
3627
**/metals.sbt
3728
*.lock
38-
benchmark-bridge/corpus/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The main changes to these modules from Bloop mainline are mainly:
1212

1313
bloop-core is built with sbt, just like Bloop mainline.
1414

15-
Compile its main modules with
15+
Compile everything with
1616
```text
17-
$ sbt stuff/compile
17+
$ sbt test:compile
1818
```

bin/check-good-practices.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

bin/ci-setup-bloopoid-keys.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

bin/release_notes.sc

Lines changed: 0 additions & 112 deletions
This file was deleted.

bin/sbt-ci-publish.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

bin/sbt-ci-release.bat

Lines changed: 0 additions & 2 deletions
This file was deleted.

bin/sbt-ci-release.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)