Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: switch to new ci and publish on public index #9

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .cargo/config.toml

This file was deleted.

51 changes: 36 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,41 @@
name: Rust - Continuous Integration

name: CI-CD - Tests and Publishing
on:
push:
branches: [ main ]
branches:
- main
pull_request: {}
workflow_dispatch:

inputs:
publish:
description: Trigger with publish
required: false
type: boolean
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
release:
uses: ForesightMiningSoftwareCorporation/github/.github/workflows/publish-rust-crate.yml@v1.0.0
test_vector-expr:
name: 'Test vector_expr: vector-expr'
uses: ForesightMiningSoftwareCorporation/github/.github/workflows/rust-test.yml@v2
needs: []
if: ${{ always() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
with:
private-registry-host: ssh.shipyard.rs
private-registry-name: foresight-mining-software-corporation
initial_event_name: ${{ github.event_name }}
skip-test: true
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
private-registry-private-key: ${{ secrets.CARGO_PRIVATE_REGISTRY_SSH_PRIVATE_KEY }}
private-registry-token: ${{ secrets.CARGO_PRIVATE_REGISTRY_TOKEN }}
discord-webhook: ${{ secrets.DISCORD_WEBHOOK }}
working_directory: .
test_publish_required: 'true'
secrets: inherit
publish_vector-expr:
name: 'Publish vector_expr: vector-expr'
uses: ForesightMiningSoftwareCorporation/github/.github/workflows/rust-build.yml@v2
needs:
- test_vector-expr
if: ${{ always() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') && (github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.publish)) }}
with:
skip_test: 'false'
publish: 'true'
publish_private_registry: 'false'
publish_public_registry: 'true'
publish_docker: 'false'
publish_binary: 'false'
publish_npm_napi: 'false'
working_directory: .
secrets: inherit
16 changes: 0 additions & 16 deletions .github/workflows/test.yml

This file was deleted.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ pest = "2.7.5"
pest_derive = "2.7.5"

rayon = { version = "1", optional = true }

[package.metadata.fslabs.publish.cargo]
allow_public = true
Loading