Skip to content

Feature/estimate set cardinality #21

Feature/estimate set cardinality

Feature/estimate set cardinality #21

name: Publish snapshot
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
COURSIER_REPOSITORIES: central|https://s01.oss.sonatype.org/content/repositories/snapshots|jitpack|https://corporate.com/repo
PGP_SECRET: ${{ secrets.PGP_SECRET }}
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
jobs:
cross:
strategy:
fail-fast: false
matrix:
# a list of all the targets
include:
- TARGET: x86_64-pc-windows-msvc
OS: windows-latest
- TARGET: x86_64-apple-darwin
OS: macos-latest
- TARGET: aarch64-apple-darwin
OS: macos-latest
runs-on: ${{ matrix.OS }}
env:
NAME: rust cross compile
TARGET: ${{ matrix.TARGET }}
OS: ${{ matrix.OS }}
MILL_RUST_TARGET: ${{ matrix.TARGET }}
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.TARGET }}
override: true
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '8'
- run: chmod +x millw
- run: ./millw fastbloomjvm.compileNative
- uses: actions/upload-artifact@v3
with:
name: result
path: out/fastbloomjvm/compileNative.dest/native/
- run: ls -R out/fastbloomjvm/compileNative.dest/native/
deploy:
needs: cross
runs-on: ubuntu-22.04
env:
MILL_RUST_TARGET: x86_64-unknown-linux-gnu
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: x86_64-unknown-linux-gnu
override: true
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '8'
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: result
path: library/native/
- run: chmod +x millw
- run: ./millw fastbloomjvm.compileNative
- run: ls -R library/native/
- run: ./millw fastbloomjvm.jar
- run: ls -R library/native/
- run: echo $PGP_SECRET | base64 --decode > gpg_key && gpg --import --no-tty --batch --yes gpg_key
- run: ./millw -i __.publishArtifacts
- run: ls -R library/native/
- run: gpg --passphrase=$PGP_PASSPHRASE --no-tty --pinentry-mode loopback --batch --yes -a -b build.sc
- run: ./millw -d mill.scalalib.PublishModule/publishAll --publishArtifacts __.publishArtifacts --sonatypeCreds yankun1992:$SONATYPE_PASSWORD --gpgArgs --passphrase=$PGP_PASSPHRASE,--no-tty,--pinentry-mode,loopback,--batch,--yes,-a,-b --sonatypeUri https://s01.oss.sonatype.org/service/local --sonatypeSnapshotUri https://s01.oss.sonatype.org/content/repositories/snapshots --readTimeout 1200000 --awaitTimeout 1200000 --signed true --release true --stagingRelease false
- run: rm gpg_key