Skip to content
Merged
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
32 changes: 32 additions & 0 deletions projects/idleberg.github.io/ardent/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
distributable:
url: https://github.com/idleberg/ardent/archive/refs/tags/{{ version.tag }}.tar.gz
strip-components: 1

versions:
github: idleberg/ardent

build:
dependencies:
rust-lang.org: ^1.85
rust-lang.org/cargo: '*'
script: cargo install --path . --root {{ prefix }} --locked

provides:
- bin/ardent

test:
- run: ardent --version | grep {{ version }}
- run: ardent format $FIXTURE > formatted.nsi
fixture:
extname: nsi
content: |
section
messagebox mb_ok "hello"
sectionend
# ugh, newlines

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could maybe pass it as Section\nMessageBox MB_OK "Hello"\nSectionEnd instead, if you prefer

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i considered a number of ways to make it clear. i probably should have reverted to your printf, but this works.

thanks for the addition(s)!

- run: head -n3 $FIXTURE >out
fixture: |
Section
MessageBox MB_OK "hello"
SectionEnd
- diff out formatted.nsi
Loading