Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
fetch-depth: 0 # For VitePress lastUpdated feature

Expand All @@ -57,14 +57,14 @@ jobs:
cp -r "${RUST_DOC_SRC}/." "${RUST_DOC_OUTPUT}/"

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: "20"
cache: "npm"
cache-dependency-path: hypnoscript-docs/package-lock.json

- name: Setup Pages
uses: actions/configure-pages@v4
uses: actions/configure-pages@v6

- name: Install Dependencies
working-directory: hypnoscript-docs
Expand All @@ -80,7 +80,7 @@ jobs:
cp -r "${RUST_DOC_OUTPUT}/." hypnoscript-docs/docs/.vitepress/dist/rust-api/

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
uses: actions/upload-pages-artifact@v5
with:
path: hypnoscript-docs/docs/.vitepress/dist

Expand All @@ -94,7 +94,7 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v5

# Optional: Build and test on PR
test-build:
Expand All @@ -106,7 +106,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
Expand All @@ -127,7 +127,7 @@ jobs:
cp -r "${RUST_DOC_SRC}/." "${RUST_DOC_OUTPUT}/"

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: "20"
cache: "npm"
Expand Down
51 changes: 42 additions & 9 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,49 @@
# Welcomes first-time contributors with useful onboarding information.
#
# Docs: https://github.com/actions/first-interaction
name: Greetings

on: [pull_request_target, issues]
on:
issues:
types: [opened]
pull_request_target:
types: [opened]

permissions:
issues: write
pull-requests: write

jobs:
greeting:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "Message that will be displayed on users' first issue"
pr-message: "Message that will be displayed on users' first pull request"
- uses: actions/first-interaction@v3
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
issue_message: |
👋 Thanks for opening your first issue in **HypnoScript**!

To help us triage it quickly, please make sure your report includes:

- **What you expected** to happen and **what actually** happened
- A **minimal `.hyp` snippet** or the CLI command that reproduces the problem
(e.g. `hypnoscript check file.hyp` / `hypnoscript exec file.hyp`)
- The output of `hypnoscript version` and your OS

A maintainer will take a look as soon as possible. If you don't get a
response within a couple of weeks, feel free to ping the thread —
inactive issues are marked as stale automatically.
pr_message: |
👋 Thanks for your first pull request to **HypnoScript** — welcome aboard!

Before a review, please check that:

- [ ] `cargo fmt --all -- --check` passes
- [ ] `cargo clippy --all-targets --all-features -- -D warnings` is clean
- [ ] `cargo test --workspace` succeeds
- [ ] New language features come with tests (see `hypnoscript-tests/`)
- [ ] The PR targets the `dev` branch (unless it's a hotfix/release)

CI will run the full build-and-test matrix automatically, and labels
are applied based on the paths you touched. A maintainer will review
your changes soon — thanks for contributing! 🎉
34 changes: 22 additions & 12 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
# This workflow will triage pull requests and apply a label based on the
# paths that are modified in the pull request.
# Triages pull requests and applies labels based on the paths that are
# modified, the base branch, and the head branch naming convention.
#
# To use this workflow, you will need to set up a .github/labeler.yml
# file with configuration. For more information, see:
# https://github.com/actions/labeler

# Configuration lives in .github/labeler.yml
# Docs: https://github.com/actions/labeler
name: Labeler
on: [pull_request_target]

on:
pull_request_target:
types: [opened, synchronize, reopened, ready_for_review]

concurrency:
group: labeler-${{ github.event.pull_request.number }}
cancel-in-progress: true

permissions:
contents: read
pull-requests: write

jobs:
label:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
issues: write

steps:
- uses: actions/labeler@v6
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: .github/labeler.yml
# Remove path-based labels again when the matching changes are
# reverted / no longer part of the PR.
sync-labels: true
26 changes: 13 additions & 13 deletions .github/workflows/rust-build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
fi

- name: Upload artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: ${{ matrix.asset_name }}
path: |
Expand All @@ -97,7 +97,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
Expand Down Expand Up @@ -131,7 +131,7 @@ jobs:
run: cargo deb --package hypnoscript-cli

- name: Upload .deb artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: hypnoscript-deb
path: target/debian/*.deb
Expand All @@ -144,7 +144,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Stage installer script
run: |
Expand All @@ -153,15 +153,15 @@ jobs:
chmod +x artifacts/installer/install.sh

- name: Download all artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
path: artifacts

- name: Display structure of downloaded files
run: ls -R artifacts

- name: Create Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v3
with:
files: |
artifacts/**/*
Expand Down Expand Up @@ -247,7 +247,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
fetch-depth: 0

Expand All @@ -265,14 +265,14 @@ jobs:
cp -r "${RUST_DOC_SRC}/." "${RUST_DOC_OUTPUT}/"

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: "20"
cache: "npm"
cache-dependency-path: hypnoscript-docs/package-lock.json

- name: Setup Pages
uses: actions/configure-pages@v4
uses: actions/configure-pages@v6

- name: Install docs dependencies
working-directory: hypnoscript-docs
Expand All @@ -288,13 +288,13 @@ jobs:
cp -r "${RUST_DOC_OUTPUT}/." "${VITEPRESS_DIST}/${RUST_API_SUBDIR}/"

- name: Upload documentation artifact
uses: actions/upload-pages-artifact@v3
uses: actions/upload-pages-artifact@v5
with:
path: ${{ env.VITEPRESS_DIST }}

- name: Deploy documentation
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v5

publish-crates:
needs: create-release
Expand All @@ -303,7 +303,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/rust-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
Expand All @@ -26,23 +26,23 @@ jobs:
components: rustfmt, clippy

- name: Cache cargo registry
uses: actions/cache@v4
uses: actions/cache@v6
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-

- name: Cache cargo index
uses: actions/cache@v4
uses: actions/cache@v6
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-git-

- name: Cache cargo build
uses: actions/cache@v4
uses: actions/cache@v6
with:
path: target
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
.\target\release\hypnoscript.exe exec hypnoscript-tests\test_rust_demo.hyp

- name: Upload test results
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
if: always()
with:
name: test-results-${{ matrix.os }}
Expand All @@ -100,7 +100,7 @@ jobs:
**/test-results.xml

- name: Upload CLI binary
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: hypnoscript-cli-${{ matrix.os }}
path: |
Expand All @@ -119,7 +119,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
Expand Down Expand Up @@ -161,7 +161,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
Expand All @@ -181,7 +181,7 @@ jobs:
time ./target/release/hypnoscript exec hypnoscript-tests/test_rust_demo.hyp

- name: Upload performance results
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: performance-results
path: |
Expand All @@ -195,7 +195,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
Expand All @@ -211,7 +211,7 @@ jobs:

- name: Upload coverage to Codecov
if: env.CODECOV_TOKEN != ''
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v7
with:
files: lcov.info
fail_ci_if_error: true
Expand All @@ -229,7 +229,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
Expand All @@ -250,7 +250,7 @@ jobs:
tar -czf hypnoscript-rust-release.tar.gz -C release .

- name: Upload release artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: rust-release-package
path: hypnoscript-rust-release.tar.gz
Loading
Loading