Maximum Odd Binary Number #254
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
# This workflow will build a Java project with Maven | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
name: Main Workflow | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' # See 'Supported distributions' for available options | |
java-version: '17' | |
- name: Cache | |
uses: actions/cache@v2.0.0 | |
with: | |
# A list of files, directories, and wildcard patterns to cache and restore | |
path: ~/.m2 | |
# An explicit key for restoring and saving the cache | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
# An ordered list of keys to use for restoring the cache if no cache hit occurred for key | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Build with Maven | |
run: mvn -B package --file pom.xml |