Skip to content

Commit

Permalink
Return build
Browse files Browse the repository at this point in the history
  • Loading branch information
xxDark committed Jun 5, 2022
1 parent eaaaa77 commit 907e4d7
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 13 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: CI

on:
push:
branches:
branches:
- master
pull_request:
branches:
branches:
- master

permissions:
Expand All @@ -23,13 +23,16 @@ jobs:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup Java JDK
uses: actions/[email protected]
with:
distribution: adopt-hotspot
java-version: ${{ matrix.java-version }}
- run: ./gradlew --info test

- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup Java JDK
uses: actions/[email protected]
with:
distribution: adopt-hotspot
java-version: ${{ matrix.java-version }}
- run: ./gradlew --info build
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
env:
GITHUB_TOKEN: ${{ secrets.CI_TOKEN }}
32 changes: 32 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"tagFormat": "${version}",
"branches": [
{
"name": "master"
},
{
"name": "develop",
"prerelease": true
}
],
"plugins": [
["@semantic-release/commit-analyzer", {
"releaseRules": [
{"type": "minor", "release": "patch"}
]
}],
"@semantic-release/release-notes-generator",
[
"@semantic-release/github",
{
"successComment": false,
"failComment": false,
"assets": [
{
"path": "build/libs/*.jar"
}
]
}
]
]
}
2 changes: 1 addition & 1 deletion src/main/java/dev/xdark/ssvm/util/UnsafeUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public Object byAddress(long address) {
if (unsafe == null) {
throw new IllegalStateException("Unable to locate unsafe instance");
}
ADDRESS_SIZE = unsafe.addressSize() >> 2;;
ADDRESS_SIZE = unsafe.addressSize() >> 2;
ARRAY_OBJECT_BASE_OFFSET = unsafe.arrayBaseOffset(Object[].class);
ARRAY_BYTE_BASE_OFFSET = unsafe.arrayBaseOffset(byte[].class);
UNSAFE = unsafe;
Expand Down

0 comments on commit 907e4d7

Please sign in to comment.