Skip to content

Commit 6a54788

Browse files
committed
feat(ci): introduce CI setup
1 parent 22e1f2c commit 6a54788

File tree

2 files changed

+31
-3
lines changed

2 files changed

+31
-3
lines changed

.github/workflows/build.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: build
2+
on:
3+
push:
4+
branches: [ "master" ]
5+
pull_request:
6+
branches: [ "master" ]
7+
env:
8+
CARGO_TERM_COLOR: always
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Install Task
15+
uses: arduino/setup-task@v2
16+
with:
17+
version: 3.x
18+
repo-token: ${{ secrets.GITHUB_TOKEN }}
19+
- name: Set up Rust toolchain
20+
run: rustup update stable && rustup default stable
21+
- name: Lint
22+
run: task
23+
- name: Build
24+
run: cargo build --verbose
25+
- name: Run tests
26+
run: task test

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1+
![Build](https://github.com/AndreiPashkin/compose-idents/actions/workflows/build.yml/badge.svg)
2+
13
# compose-idents
24

35
A procedural macro that allows to construct identifiers from one or more arbitrary parts.
46

57
## Motivation
68

7-
Rust's declarative macros do not allow generating new identifiers, because they are designed to operate on
8-
the syntactic level (as opposed to the lexical level) using simple pattern matching.
9+
Rust's declarative macros do not allow generating new identifiers, because they are designed to operate on
10+
the syntactic level (as opposed to the lexical level) using simple pattern matching.
911

10-
For example the following code won't work:
12+
For example the following code won't work:
1113
```rust
1214
macro_rules! my_macro {
1315
($name:ident) => {

0 commit comments

Comments
 (0)