Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jperedadnr committed Mar 31, 2024
1 parent 54c968d commit 4bb3caf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
build:
name: Build
runs-on: macos-10.15
runs-on: macos-11
strategy:
fail-fast: false
steps:
Expand All @@ -19,25 +19,24 @@ jobs:
with:
fetch-depth: 5

- name: Setup Java 11
uses: actions/setup-java@v1
- name: Setup Java 17
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'temurin'
java-version: 17

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build project
run: |
export ANDROID_SDK=$ANDROID_HOME
export ANDROID_NDK=$ANDROID_HOME/ndk-bundle
./gradlew -i nativeBuild
- name: Deploy Snapshot
if: github.ref == 'refs/heads/master'
run: |
export ANDROID_SDK=$ANDROID_HOME
export ANDROID_NDK=$ANDROID_HOME/ndk-bundle
./gradlew publish -PgluonNexusDeployUsername=$NEXUS_DEPLOY_USERNAME -PgluonNexusDeployPassword=$NEXUS_DEPLOY_PASSWORD
env:
NEXUS_DEPLOY_USERNAME: ${{ secrets.NEXUS_DEPLOY_USERNAME }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,26 @@ on:
jobs:
build:
name: Deploy
runs-on: macos-10.15
runs-on: macos-11
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 5
persist-credentials: false

- name: Setup Java 11
uses: actions/setup-java@v1
- name: Setup Java 17
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'temurin'
java-version: 17

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Deploy Release
run: |
export ANDROID_SDK=$ANDROID_HOME
export ANDROID_NDK=$ANDROID_HOME/ndk-bundle
./gradlew publish -PgluonNexusDeployUsername=$NEXUS_DEPLOY_USERNAME -PgluonNexusDeployPassword=$NEXUS_DEPLOY_PASSWORD
env:
NEXUS_DEPLOY_USERNAME: ${{ secrets.NEXUS_DEPLOY_USERNAME }}
Expand All @@ -44,4 +44,4 @@ jobs:
git commit gradle.properties -m "Prepare development of $newVersion"
git push https://gluon-bot:[email protected]/$GITHUB_REPOSITORY HEAD:master
env:
PAT: ${{ secrets.PAT }}
PAT: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion gradle/include/AttachMacros.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static __inline__ void AttachLog(const char *file, int lineNumber, const char *f
[dateFormatter setTimeZone:[NSTimeZone systemTimeZone]];
}
fprintf(stderr, "[AttachLog] %s %s:%3d %s\n", [[dateFormatter stringFromDate:[NSDate date]] UTF8String], funcName, lineNumber, [formattedMessage UTF8String]);
[formattedMessage release];
// [formattedMessage release];
}

#define AttachLog(MSG, ...) AttachLog(__FILE__, __LINE__, __PRETTY_FUNCTION__, MSG, ## __VA_ARGS__ )
Expand Down

0 comments on commit 4bb3caf

Please sign in to comment.