Skip to content

Commit

Permalink
Publish TruffleSqueak packages to GitHub Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Jan 3, 2024
1 parent 5952b2c commit 79c459b
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ jobs:
echo GRAALVM_HOME=%GRAALVM_HOME%>>%GITHUB_ENV%
echo [%GRAALVM_HOME% set as $GRAALVM_HOME]
if: ${{ runner.os == 'Windows' }}
- name: Publish TruffleSqueak packages to GitHub Packages
shell: bash
run: |
sed "s/{USERNAME}/${GITHUB_ACTOR}/g; s/{TOKEN}/${{ secrets.GITHUB_TOKEN }}/g" mx.trufflesqueak/mvn-settings.xml.template > mx.trufflesqueak/mvn-settings.xml
mx --env trufflesqueak-jar maven-deploy --settings mx.trufflesqueak/mvn-settings.xml --version-string 24.0.0-SNAPSHOT --validate full --licenses MIT --suppress-javadoc github https://maven.pkg.github.com/hpi-swa/trufflesqueak
if: ${{ matrix.os == 'ubuntu-20.04' }}
- name: Run SystemReporter on TruffleSqueak
run: 'trufflesqueak --code "(String streamContents: [:s | SystemReporter basicNew reportImage: s; reportVM: s; reportVMParameters: s]) withUnixLineEndings" images/test-64bit.image'
- name: Clone Graal.js repository
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ build.xml
/mx.trufflesqueak/.pydevproject
/mx.trufflesqueak/env
/mx.trufflesqueak/eclipse-launches
/mx.trufflesqueak/mvn-settings.xml
/mxbuild
/TRUFFLESQUEAK*.dist
/coverage
Expand Down
38 changes: 38 additions & 0 deletions mx.trufflesqueak/mvn-settings.xml.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">

<!-- https://github.com/github/docs/blob/5f551ae6209c994f9ef5130a1596a7330badc398/content/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry.md -->

<activeProfiles>
<activeProfile>github</activeProfile>
</activeProfiles>

<profiles>
<profile>
<id>github</id>
<repositories>
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2</url>
</repository>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/hpi-swa/trufflesqueak</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>

<servers>
<server>
<id>github</id>
<username>{USERNAME}</username>
<password>{TOKEN}</password>
</server>
</servers>
</settings>
3 changes: 3 additions & 0 deletions mx.trufflesqueak/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@
"tag": ["default", "public"],
},
"noMavenJavadoc": True,
"license": ["MIT"],
},

"TRUFFLESQUEAK_HOME": {
Expand Down Expand Up @@ -304,6 +305,7 @@
"tag": ["default", "public"],
},
"noMavenJavadoc": True,
"license": ["MIT"],
},

"TRUFFLESQUEAK_SHARED": {
Expand All @@ -326,6 +328,7 @@
"tag": ["default", "public"],
},
"noMavenJavadoc": True,
"license": ["MIT"],
},

"TRUFFLESQUEAK_TCK": {
Expand Down

0 comments on commit 79c459b

Please sign in to comment.