Skip to content

Commit 0c1afda

Browse files
Misc fixes for v0.2.6
0 parents  commit 0c1afda

35 files changed

+3950
-0
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: "CI"
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
push:
7+
branches:
8+
- main
9+
jobs:
10+
build:
11+
strategy:
12+
matrix:
13+
min-version: [true, false]
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: cachix/install-nix-action@v26
18+
with:
19+
nix_path: nixpkgs=channel:nixos-unstable
20+
- if: ${{ matrix.min-version }}
21+
run: nix develop . -c cargo update -Z direct-minimal-versions
22+
- run: nix flake check --keep-going --print-build-logs

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish Crate
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
dry-run:
7+
description: 'Is this a dry-run?'
8+
required: true
9+
default: true
10+
type: boolean
11+
12+
jobs:
13+
publish:
14+
name: Publish
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- uses: actions-rust-lang/[email protected]
20+
with:
21+
toolchain: stable
22+
23+
- name: Cargo Publish (Dry Run)
24+
if: ${{ inputs.dry-run == true || inputs.dry-run == 'true' }}
25+
run: cargo publish --dry-run --token ${CRATES_TOKEN} -p antithesis_sdk
26+
env:
27+
CRATES_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
28+
29+
- name: Cargo Publish
30+
if: ${{ inputs.dry-run != true && inputs.dry-run != 'true' }}
31+
run: cargo publish --token ${CRATES_TOKEN} -p antithesis_sdk
32+
env:
33+
CRATES_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Zulip Notification Bot
2+
3+
on:
4+
push:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
post-to-zulip:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: actions/github-script@v7
16+
id: generate-msg
17+
with:
18+
script: |
19+
let message = `- **${context.actor}** \`${context.ref}\` | ${context.sha.substring(0,7)} | [${context.payload.head_commit.message?.split('\n')[0]}](${context.payload.compare})`
20+
let topic = context.repo.repo
21+
core.setOutput("topic", topic);
22+
core.setOutput("msg", message);
23+
24+
- name: Send a stream message
25+
uses: zulip/github-actions-zulip/send-message@v1
26+
with:
27+
api-key: ${{ secrets.ZULIP_API_KEY }}
28+
email: ${{ secrets.ZULIP_BOT_EMAIL }}
29+
organization-url: ${{ secrets.ZULIP_ORG_URL }}
30+
to: "Commits"
31+
type: "stream"
32+
topic: ${{ steps.generate-msg.outputs.topic }}
33+
content: ${{ steps.generate-msg.outputs.msg }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
target/
2+
.envrc
3+
.direnv/

Cargo.lock

Lines changed: 286 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[workspace]
2+
members = ["simple", "lib"]
3+
resolver = "2"

0 commit comments

Comments
 (0)