Skip to content

Commit

Permalink
build(deps): Bump GraalVM version
Browse files Browse the repository at this point in the history
Signed-off-by: tison <wander4096@gmail.com>
  • Loading branch information
tisonkun committed Oct 17, 2023
1 parent c50d590 commit 9055977
Show file tree
Hide file tree
Showing 26 changed files with 140 additions and 163 deletions.
4 changes: 2 additions & 2 deletions .github/semantic.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copyright 2023 Korandoru Contributors
# Copyright 2022 Korandoru Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copyright 2022-2023 Korandoru Contributors
# Copyright 2022 Korandoru Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
Expand Down Expand Up @@ -43,14 +43,16 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: Check license header
uses: korandoru/hawkeye@v3
- name: Setup Java
uses: graalvm/setup-graalvm@v1
with:
version: '22.3.0'
java-version: '17'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Check license header
run: mvn license:format
- name: Check codestyle
run: mvn spotless:check

build:
if: (github.event_name != 'schedule') || (github.repository == 'korandoru/trufflebf')
Expand All @@ -62,11 +64,11 @@ jobs:
- name: Setup Java
uses: graalvm/setup-graalvm@v1
with:
version: '22.3.0'
java-version: '17'
distribution: 'graalvm'
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build natives
- name: Build and check
run: mvn clean package -DskipTests
- name: Check natives
- name: Sanity check
run: ./trufflebf-native/bf examples/helloworld.bf
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ TruffleBF is a [brainfuck](https://en.wikipedia.org/wiki/Brainfuck) implementati

## Prerequisites

- [GraalVM 22.3.0](http://www.graalvm.org/docs/getting-started/)
- [GraalVM for JDK 17](https://www.graalvm.org/jdk17/docs/getting-started/)
- Maven 3.8.6

## Build and run
Expand All @@ -18,7 +18,7 @@ mvn clean package -DskipTests

```shell
mvn package -DskipTests
gu install -L trufflebf-component/bf-component.jar
gu install -L trufflebf-component/bf-component.jar
```

After install TruffleBF into GraalVM, you can run the interop examples.
Expand Down
4 changes: 2 additions & 2 deletions examples/Interop.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* Copyright 2022-2023 Korandoru Contributors
* Copyright 2022 Korandoru Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
7 changes: 4 additions & 3 deletions examples/interop.c
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
/**
* Copyright 2022-2023 Korandoru Contributors
/*
* Copyright 2022 Korandoru Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#include <graalvm/llvm/polyglot.h>

int main() {
Expand Down
4 changes: 2 additions & 2 deletions examples/interop.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* Copyright 2022-2023 Korandoru Contributors
* Copyright 2022 Korandoru Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions examples/interop.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copyright 2022-2023 Korandoru Contributors
# Copyright 2022 Korandoru Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
21 changes: 21 additions & 0 deletions licenserc.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2022 Korandoru Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

baseDir = "."

headerPath = "Apache-2.0.txt"

[properties]
inceptionYear = 2022
copyrightOwner = "Korandoru Contributors"
72 changes: 40 additions & 32 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2022-2023 Korandoru Contributors
Copyright 2022 Korandoru Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down Expand Up @@ -40,10 +40,10 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<exec-maven-plugin.version>3.1.0</exec-maven-plugin.version>
<graalvm.version>22.3.0</graalvm.version>
<graalvm.version>23.0.0</graalvm.version>
<maven-shade-plugin.version>3.4.1</maven-shade-plugin.version>
<license-maven-plugin.version>4.2.rc3</license-maven-plugin.version>
<os-maven-plugin.version>1.7.1</os-maven-plugin.version>
<spotless-maven-plugin.version>2.40.0</spotless-maven-plugin.version>
</properties>

<url>https://github.com/korandoru/zeronos</url>
Expand Down Expand Up @@ -79,6 +79,11 @@
<groupId>org.codehaus.mojo</groupId>
<version>${exec-maven-plugin.version}</version>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>${spotless-maven-plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>
<extensions>
Expand All @@ -90,39 +95,42 @@
</extensions>
<plugins>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>${license-maven-plugin.version}</version>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<configuration>
<licenseSets>
<licenseSet>
<header>tools/ci/license-header-template.txt</header>
<formats>
<format>
<includes>
<!-- Force override the default exclusions -->
<include>**</include>
<include>**/.github</include>
<include>**/.github/**</include>
<include>*.md</include>
<include>.gitignore</include>
<include>pom.xml</include>
</includes>
<excludes>
<exclude>**/component_temp_dir/**</exclude>
<exclude>interop.bc</exclude>
<exclude>examples/helloworld.bf</exclude>
</excludes>
</licenseSet>
</licenseSets>
<headerDefinitions>
<headerDefinition>tools/ci/license-header-override-styles.xml</headerDefinition>
</headerDefinitions>
<trimTrailingWhitespace />
<endWithNewline />
<indent>
<spaces>true</spaces>
<spacesPerTab>4</spacesPerTab>
</indent>
</format>
</formats>
<java>
<palantirJavaFormat>
<version>2.38.0</version>
</palantirJavaFormat>
<!-- static imports first, then others, no blank lines -->
<importOrder>
<order>\#|</order>
</importOrder>
<removeUnusedImports />
<trimTrailingWhitespace />
<endWithNewline />
<indent>
<spaces>true</spaces>
<spacesPerTab>4</spacesPerTab>
</indent>
</java>
</configuration>
<dependencies>
<dependency>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin-git</artifactId>
<version>${license-maven-plugin.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>

</project>
38 changes: 0 additions & 38 deletions tools/ci/license-header-override-styles.xml

This file was deleted.

13 changes: 0 additions & 13 deletions tools/ci/license-header-template.txt

This file was deleted.

7 changes: 4 additions & 3 deletions trufflebf-component/clean_component.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
#!/usr/bin/env bash

# Copyright 2022-2023 Korandoru Contributors
# Copyright 2022 Korandoru Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.



[[ -f bf-component.jar ]] && rm bf-component.jar || echo "bf-component.jar not found"
7 changes: 4 additions & 3 deletions trufflebf-component/make_component.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
#!/usr/bin/env bash

# Copyright 2022-2023 Korandoru Contributors
# Copyright 2022 Korandoru Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.



declare -r GRAALVM_VERSION="${1:?The first argument must be GraalVM version.}"
declare -r OS_DETECTED_ARCH="${2:?The second argument must be machine arch.}"

Expand Down
7 changes: 3 additions & 4 deletions trufflebf-component/pom.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2022-2023 Korandoru Contributors
Copyright 2022 Korandoru Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down Expand Up @@ -62,5 +62,4 @@
</plugin>
</plugins>
</build>

</project>
</project>
Loading

0 comments on commit 9055977

Please sign in to comment.