npub1g8…z3zcu on Nostr: name: Rust on: push: branches: [ "*" ] pull_request: branches: [ "*" ] env: ...
name: Rust
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
env:
CARGO_TERM_COLOR: always
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
RUST_LOG: info
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-15-intel, macos-latest, windows-latest]
features_args: ["", "--no-default-features", "--features nostr"]
steps:
- uses: actions/checkout@v4
- name: Build ${{ matrix.features_args }}
run: cargo build --workspace --verbose ${{ matrix.features_args }}
- name: Run workspace tests ${{ matrix.features_args }}
run: |
cargo test --workspace ${{ matrix.features_args }} -- --test-threads 1
- name: Run get_file_hash_core tests ${{ matrix.features_args }}
shell: bash
run: |
if [[ "${{ matrix.features_args }}" == "--features nostr" ]]; then
cargo test -p get_file_hash_core ${{ matrix.features_args }} -- --test-threads 1 --nocapture
else
cargo test -p get_file_hash_core ${{ matrix.features_args }} -- --test-threads 1
fi
- name: Run get_file_hash tests ${{ matrix.features_args }}
shell: bash
run: |
if [[ "${{ matrix.features_args }}" == "--features nostr" ]]; then
cargo test -p get_file_hash ${{ matrix.features_args }} -- --test-threads 1 --nocapture
else
cargo test -p get_file_hash ${{ matrix.features_args }} -- --test-threads 1
fi
- name: Build Release ${{ matrix.features_args }}
run: cargo build --workspace --release ${{ matrix.features_args }}
Published at
2026-04-03 18:05:05 CESTEvent JSON
{
"id": "d9f16741e2c65c29bace7605a60bfcdeacd5c6d930276c3516ea9d8eaac76a4a",
"pubkey": "41e40eac87fa4e01418b8199d20ee22d5d179c7fd9809b67fa4d5b56fb01b13a",
"created_at": 1775232305,
"kind": 1,
"tags": [
[
"file",
".github/workflows/rust.yml"
],
[
"version",
"0.3.3"
]
],
"content": "name: Rust\n\non:\n push:\n branches: [ \"*\" ]\n pull_request:\n branches: [ \"*\" ]\n\nenv:\n CARGO_TERM_COLOR: always\n FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true\n RUST_LOG: info\n\njobs:\n build:\n\n runs-on: ${{ matrix.os }}\n strategy:\n matrix:\n os: [ubuntu-latest, macos-15-intel, macos-latest, windows-latest]\n features_args: [\"\", \"--no-default-features\", \"--features nostr\"]\n\n steps:\n - uses: actions/checkout@v4\n - name: Build ${{ matrix.features_args }}\n run: cargo build --workspace --verbose ${{ matrix.features_args }}\n - name: Run workspace tests ${{ matrix.features_args }}\n run: |\n cargo test --workspace ${{ matrix.features_args }} -- --test-threads 1\n - name: Run get_file_hash_core tests ${{ matrix.features_args }}\n shell: bash\n run: |\n if [[ \"${{ matrix.features_args }}\" == \"--features nostr\" ]]; then\n cargo test -p get_file_hash_core ${{ matrix.features_args }} -- --test-threads 1 --nocapture\n else\n cargo test -p get_file_hash_core ${{ matrix.features_args }} -- --test-threads 1\n fi\n - name: Run get_file_hash tests ${{ matrix.features_args }}\n shell: bash\n run: |\n if [[ \"${{ matrix.features_args }}\" == \"--features nostr\" ]]; then\n cargo test -p get_file_hash ${{ matrix.features_args }} -- --test-threads 1 --nocapture\n else\n cargo test -p get_file_hash ${{ matrix.features_args }} -- --test-threads 1\n fi\n - name: Build Release ${{ matrix.features_args }}\n run: cargo build --workspace --release ${{ matrix.features_args }}\n",
"sig": "79cb50db5c442d01bdfa51f946d5467a9cecc70ca597a32c9738b152412380e93d27399354daf48f24d08af5ae09fe75e9189da8b00c987ba4e895633c644f90"
}