diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..0747db71 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,42 @@ +name: Release + +on: + workflow_dispatch: + inputs: + level: + description: 'Release level' + required: true + default: 'patch' + type: choice + options: + - patch + - minor + - major + +defaults: + run: + shell: bash + +jobs: + release: + runs-on: ubuntu-latest + # The permissions should allow the user to: + # 1. Push to the branch of the repository that triggered the workflow. + # 2. Create a tag. + # 3. Push to crates.io. + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + - name: Install required packages + run: sudo apt install --no-install-recommends --yes libhwloc-dev nvidia-cuda-toolkit ocl-icd-opencl-dev + - name: Install cargo release + run: cargo install --version 0.25.17 cargo-release + - name: Set git user + run: | + git config --global user.email "${GITHUB_TRIGGERING_ACTOR}@users.noreply.github.com>" + git config --global user.name "${GITHUB_TRIGGERING_ACTOR}" + - name: Run cargo release + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + run: cargo release ${{ github.event.inputs.level }} --no-confirm --execute diff --git a/Cargo.toml b/Cargo.toml index f0d9b568..11c16105 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,9 +14,9 @@ bincode = "1.1.2" blstrs = "0.7" lazy_static = "1.2" serde = "1.0.104" -filecoin-proofs-v1 = { package = "filecoin-proofs", version = "~18.1.0", default-features = false } -fr32 = { version = "~11.1.0", default-features = false } -storage-proofs-core = { version = "~18.1.0", default-features = false } +filecoin-proofs-v1 = { package = "filecoin-proofs", version = "~19.0.0", default-features = false } +fr32 = { version = "~12.0.0", default-features = false } +storage-proofs-core = { version = "~19.0.0", default-features = false } [features] default = ["opencl", "cuda"]