48 lines
1.8 KiB
YAML
48 lines
1.8 KiB
YAML
|
on:
|
||
|
schedule:
|
||
|
- cron: "0 */12 * * *"
|
||
|
workflow_dispatch:
|
||
|
jobs:
|
||
|
# Wait for up to a minute for previous run to complete, abort if not done by then
|
||
|
pre-ci:
|
||
|
runs-on: ubuntu-latest
|
||
|
timeout-minutes: 1
|
||
|
steps:
|
||
|
- name: 'Block Concurrent Executions'
|
||
|
uses: softprops/turnstyle@v1
|
||
|
with:
|
||
|
poll-interval-seconds: 10
|
||
|
env:
|
||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||
|
mac-x86_64:
|
||
|
needs: pre-ci
|
||
|
runs-on: macos-10.15
|
||
|
steps:
|
||
|
- name: Cancel Previous Runs
|
||
|
uses: styfle/cancel-workflow-action@0.8.0
|
||
|
with:
|
||
|
access_token: ${{ github.token }}
|
||
|
- uses: actions/checkout@v2
|
||
|
- name: Set up Java for publishing to GitHub Packages
|
||
|
uses: actions/setup-java@v1
|
||
|
with:
|
||
|
java-version: 1.8
|
||
|
server-id: sonatype-nexus-snapshots
|
||
|
server-username: MAVEN_USERNAME
|
||
|
server-password: MAVEN_PASSWORD
|
||
|
gpg-private-key: ${{ secrets.SONATYPE_GPG_KEY }}
|
||
|
gpg-passphrase: MAVEN_GPG_PASSPHRASE
|
||
|
- name: Build and install
|
||
|
shell: bash
|
||
|
env:
|
||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||
|
PUBLISH_TO: ossrh
|
||
|
MAVEN_USERNAME: ${{ secrets.SONATYPE_USER_1 }}
|
||
|
MAVEN_PASSWORD: ${{ secrets.SONATYPE_USER1_PASS }}
|
||
|
MAVEN_GPG_PASSPHRASE: ${{ secrets.PACKAGES_GPG_PASS }}
|
||
|
run: |
|
||
|
brew install unzip ccache gcc swig autoconf-archive automake cmake libomp libtool libusb ant maven nasm xz pkg-config sdl gpg1 bison flex perl ragel binutils gradle gmp isl libmpc mpfr wget python
|
||
|
mvn -Possrh -Djavacpp.platform=macosx-x86_64 -Djavacpp.platform=macosx-x86_64 -pl ":nd4j-native,:libnd4j" --also-make -Dlibnd4j.platform=macosx-x86_64 -Dlibnd4j.chip=cpu clean --batch-mode deploy -DskipTests
|
||
|
|
||
|
|