|
| 1 | +on: |
| 2 | + schedule: |
| 3 | + - cron: "0 */12 * * *" |
| 4 | + workflow_dispatch: |
| 5 | +jobs: |
| 6 | + # Wait for up to a minute for previous run to complete, abort if not done by then |
| 7 | + pre-ci: |
| 8 | + runs-on: ubuntu-latest |
| 9 | + timeout-minutes: 1 |
| 10 | + steps: |
| 11 | + - name: 'Block Concurrent Executions' |
| 12 | + uses: softprops/turnstyle@v1 |
| 13 | + with: |
| 14 | + poll-interval-seconds: 10 |
| 15 | + env: |
| 16 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 17 | + #Note: no -pl here because we publish everything from this branch and use this as the basis for all uploads. |
| 18 | + linux-arm64: |
| 19 | + needs: pre-ci |
| 20 | + runs-on: ubuntu-16.04 |
| 21 | + steps: |
| 22 | + - uses: AutoModality/action-clean@v1 |
| 23 | + - name: Cancel Previous Runs |
| 24 | + |
| 25 | + with: |
| 26 | + access_token: ${{ github.token }} |
| 27 | + - uses: actions/checkout@v2 |
| 28 | + - uses: ./.github/actions/update-deps-linux |
| 29 | + - uses: ./.github/actions/install-protobuf-linux |
| 30 | + - uses: ./.github/actions/install-cmake-linux |
| 31 | + - name: Set up Java for publishing to GitHub Packages |
| 32 | + uses: actions/setup-java@v1 |
| 33 | + with: |
| 34 | + java-version: 1.8 |
| 35 | + server-id: sonatype-nexus-snapshots |
| 36 | + server-username: MAVEN_USERNAME |
| 37 | + server-password: MAVEN_PASSWORD |
| 38 | + gpg-private-key: ${{ secrets.SONATYPE_GPG_KEY }} |
| 39 | + gpg-passphrase: MAVEN_GPG_PASSPHRASE |
| 40 | + - name: Build on linux-arm64 |
| 41 | + shell: bash |
| 42 | + env: |
| 43 | + DEBIAN_FRONTEND: noninteractive |
| 44 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 45 | + DEPLOY: 1 |
| 46 | + BUILD_USING_MAVEN: 1 |
| 47 | + TARGET_OS: linux |
| 48 | + CURRENT_TARGET: arm64 |
| 49 | + PUBLISH_TO: ossrh |
| 50 | + DEPLOY_TO: ossrh |
| 51 | + MAVEN_USERNAME: ${{ secrets.SONATYPE_USER_1 }} |
| 52 | + MAVEN_PASSWORD: ${{ secrets.SONATYPE_USER1_PASS }} |
| 53 | + MAVEN_GPG_PASSPHRASE: ${{ secrets.PACKAGES_GPG_PASS }} |
| 54 | + |
| 55 | + run: | |
| 56 | + mvn --version |
| 57 | + cmake --version |
| 58 | + protoc --version |
| 59 | + for folder in `ls`; do |
| 60 | + mvn clean test |
| 61 | + done |
| 62 | +
|
| 63 | +
|
0 commit comments