Skip to content

Commit

Permalink
[enh] add ci_cd
Browse files Browse the repository at this point in the history
  • Loading branch information
loispostula committed Jan 20, 2023
1 parent 862793e commit fda7289
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .cargo/audit.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[advisories]
ignore = ["RUSTSEC-2021-0127", "RUSTSEC-2021-0145"]
6 changes: 6 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[unstable]
registry-auth = true
[registries.foresight-mining-software-corporation]
index = "ssh://git@ssh.shipyard.rs/foresight-mining-software-corporation/crate-index.git"
[net]
git-fetch-with-cli = true
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Rust - Continuous Integration

on:
push:
branches: [ master ]
workflow_dispatch:

jobs:
release:
uses: ForesightMiningSoftwareCorporation/github/.github/workflows/publish-rust-crate.yml@v1.0.0
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 }}
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on:
pull_request:

name: Test on PR

jobs:
test-fse-app:
uses: ForesightMiningSoftwareCorporation/github/.github/workflows/rust-test.yml@v1.0.0
with:
private-registry-host: ssh.shipyard.rs
private-registry-name: foresight-mining-software-corporation
initial_event_name: ${{ github.event_name }}
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 }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/target
/Cargo.lock
.idea/
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ authors = ["Duncan Fairbanks <duncan.fairbanks@foresightmining.com>"]
version = "0.1.0"
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/ForesightMiningSoftwareCorporation/vector_expr"
publish = ["foresight-mining-software-corporation"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down

0 comments on commit fda7289

Please sign in to comment.