forked from enso-org/enso
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
58 changed files
with
833 additions
and
269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,8 @@ env: | |
sbtVersion: 1.5.2 | ||
# Please ensure that this is in sync with rustVersion in build.sbt | ||
rustToolchain: nightly-2021-05-12 | ||
# Specifies how many nightly releases should be kept. Any older releases are removed. | ||
NIGHTLIES_TO_KEEP: 20 | ||
|
||
concurrency: "releases" | ||
|
||
|
@@ -566,6 +568,32 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# This is done regardless of the release-publish-edition workflow, because this workflow seems to not be triggered by Actions automatically. | ||
- name: Prepare AWS Session | ||
shell: bash | ||
run: | | ||
aws configure --profile s3-upload <<-EOF > /dev/null 2>&1 | ||
${{ secrets.ARTEFACT_S3_ACCESS_KEY_ID }} | ||
${{ secrets.ARTEFACT_S3_SECRET_ACCESS_KEY }} | ||
eu-central-1 | ||
text | ||
EOF | ||
- name: Update the Editions Bucket | ||
shell: bash | ||
working-directory: repo | ||
run: sbt edition-uploader/run | ||
|
||
- name: Teardown AWS Session | ||
shell: bash | ||
run: | | ||
aws configure --profile s3-upload <<-EOF > /dev/null 2>&1 | ||
null | ||
null | ||
null | ||
text | ||
EOF | ||
# TODO enable this once IDE supports triggers | ||
# - name: Trigger IDE Build | ||
# shell: bash | ||
|
@@ -576,7 +604,7 @@ jobs: | |
- uses: dev-drprasad/[email protected] | ||
name: Remove Old Releases | ||
with: | ||
keep_latest: 3 | ||
keep_latest: ${{ env.NIGHTLIES_TO_KEEP }} | ||
delete_tag_pattern: SNAPSHOT | ||
delete_tags: true | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: Publish Edition to S3 | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
env: | ||
# Please ensure that this is in sync with graalVersion in build.sbt | ||
graalVersion: 21.1.0 | ||
# Please ensure that this is in sync with javaVersion in build.sbt | ||
javaVersion: 11 | ||
# Please ensure that this is in sync with project/build.properties | ||
sbtVersion: 1.5.2 | ||
# Please ensure that this is in sync with NIGHTLIES_TO_KEEP in nightly.yml | ||
NIGHTLIES_TO_KEEP: 20 | ||
|
||
concurrency: "releases" | ||
|
||
jobs: | ||
update-editions-on-s3: | ||
name: Update Editions on S3 | ||
runs-on: ubuntu-18.04 | ||
timeout-minutes: 30 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
path: repo | ||
- name: Setup GraalVM Environment | ||
uses: ayltai/setup-graalvm@v1 | ||
with: | ||
graalvm-version: ${{ env.graalVersion }} | ||
java-version: ${{ env.javaVersion }} | ||
native-image: true | ||
- name: Set Up SBT | ||
shell: bash | ||
run: | | ||
curl -fsSL -o sbt.tgz https://github.com/sbt/sbt/releases/download/v${{env.sbtVersion}}/sbt-${{env.sbtVersion}}.tgz | ||
tar -xzf sbt.tgz | ||
echo $GITHUB_WORKSPACE/sbt/bin/ >> $GITHUB_PATH | ||
# Caches | ||
- name: Cache SBT | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.sbt | ||
~/.ivy2/cache | ||
~/.cache | ||
key: ${{ runner.os }}-sbt-${{ hashFiles('**build.sbt') }} | ||
restore-keys: ${{ runner.os }}-sbt- | ||
|
||
- name: Prepare AWS Session | ||
shell: bash | ||
run: | | ||
aws configure --profile s3-upload <<-EOF > /dev/null 2>&1 | ||
${{ secrets.ARTEFACT_S3_ACCESS_KEY_ID }} | ||
${{ secrets.ARTEFACT_S3_SECRET_ACCESS_KEY }} | ||
eu-central-1 | ||
text | ||
EOF | ||
- name: Update the Editions Bucket | ||
shell: bash | ||
working-directory: repo | ||
run: sbt edition-uploader/run | ||
|
||
- name: Teardown AWS Session | ||
shell: bash | ||
run: | | ||
aws configure --profile s3-upload <<-EOF > /dev/null 2>&1 | ||
null | ||
null | ||
null | ||
text | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 2 additions & 6 deletions
8
engine/language-server/src/main/scala/org/enso/languageserver/boot/MainModule.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rc/main/scala/org/enso/languageserver/protocol/json/JsonConnectionControllerFactory.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.