Skip to content

Commit

Permalink
Merge pull request #5 from hylo-so/github-actions
Browse files Browse the repository at this point in the history
Set up CI/CD with Github
  • Loading branch information
0xPlish authored Mar 17, 2024
2 parents 534aeff + a3875ea commit 3750ce0
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 7 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish

on:
push:
branches: [ "master" ]

env:
CARGO_TERM_COLOR: always
CRATES_API_KEY: ${{ secrets.CRATES_API_KEY }}

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run Tests
run: cargo test --verbose
- name: Publish Crate
run: |
cargo login $CRATES_API_KEY
cargo publish
21 changes: 21 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build & Test

on:
pull_request:
branches: [ "master" ]

env:
CARGO_TERM_COLOR: always
CRATES_API_KEY: ${{ secrets.CRATES_API_KEY }}

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[package]
name = "fix"
version = "0.1.1"
name = "hylo-fix"
version = "0.1.0"
edition = "2021"
description = "Fixed-point number types"
authors = ["Curtis McEnroe <programble@gmail.com>", "0xPlish <plish@hylo.so>"]
repository = "https://github.com/programble/fix"
authors = ["0xPlish <plish@hylo.so>", "Curtis McEnroe <programble@gmail.com>"]
repository = "https://github.com/hylo-so/fix"
license = "ISC"
readme = "README.md"
keywords = ["fixed", "point", "number", "integer", "arithmetic"]
keywords = ["math", "fixed", "point", "fixpoint", "basis", "number", "integer", "arithmetic", "solana"]
categories = ["data-structures"]

[badges]
travis-ci = { repository = "programble/fix" }
[lib]
name = "fix"

[features]
i128 = ["typenum/i128"]
Expand Down

0 comments on commit 3750ce0

Please sign in to comment.