bump GitHub actions to the latest #276
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: Build Cyber IO when Push | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set Android SDK tools | |
run: echo "$ANDROID_HOME/build-tools/30.0.3" >> $GITHUB_PATH | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: 'gradle' | |
- name: Test CyberIO | |
run: | | |
chmod +x gradlew | |
./gradlew test | |
- name: Build Cyber-IO | |
run: | | |
chmod +x gradlew | |
./gradlew :main:deploy | |
- name: Upload Cyber-IO jar | |
uses: actions/upload-artifact@v3 | |
with: | |
name: I-am-CyberIO-Unzip-me | |
path: main/build/tmp/deploy/*.jar |