https://github.com/2moe/cinnabar
CI utils
https://github.com/2moe/cinnabar
Last synced: 8 months ago
JSON representation
CI utils
- Host: GitHub
- URL: https://github.com/2moe/cinnabar
- Owner: 2moe
- License: apache-2.0
- Created: 2025-05-30T10:50:42.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-03T19:08:35.000Z (about 1 year ago)
- Last Synced: 2025-06-24T08:06:16.485Z (12 months ago)
- Language: Ruby
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: docs/Readme.md
- License: License
Awesome Lists containing this project
README
# Cinnabar
## Preface
Q: Why is it named Cinnabar?
A:
1. Cinnabar was an ingredient used by ancient Daoist alchemists in their elixirs, much like this project serves as an "ingredient" within CI workflows.
2. Cinnabar is toxic. This project was developed for *Dirty and Quick* purposes and may produce unexpected side effects—in a sense, it is not entirely harmless.
3. Cinnabar, a mineral form of mercury sulfide, is a deep red-colored stone. And ruby is also a deep red stone. Naming a Ruby project "Cinnabar" is particularly fitting.
## Usage
Github Actions for cinnabar
```yaml
env:
# Speeds up script startup by disabling RubyGems
RUBYOPT: "--disable=gems"
default_ci_shell: ruby cinnabar/ci/preload.rb {0}
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: ${{env.default_ci_shell}}
steps:
- uses: actions/checkout@v4
- name: clone cinnabar
uses: actions/checkout@v4
with:
repository: 2moe/cinnabar
path: cinnabar
ref: cf1b9d3d48cf579fa1969b0d2453e6f859a2ae09
- name: (example) run cargo command
run: |
{
cargo: nil,
build: nil,
profile: 'release',
verbose: true,
target: 'x86_64-unknown-linux-musl'
}
.then(&hash_to_argv)
.then(&run)
```
See also: [build-wasi.yml](https://github.com/2moe/glossa/blob/dev/.github/workflows/build-wasi.yml)