修复 map 可能会被撑爆的 bug #53
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
name: CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Build | |
run: | | |
cd $GITHUB_WORKSPACE/src/main/kotlin | |
if [ ! -z "${{ secrets.XXTEA_KEY }}" ]; then | |
sed -i "s/20221209/"${{ secrets.XXTEA_KEY }}"/" ./Main.kt | |
fi | |
cd $GITHUB_WORKSPACE | |
chmod +x ./gradlew | |
./gradlew jar | |
- name: Upload build artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ksugmbot | |
path: build/libs/*.jar | |