Skip to content

Commit 21e593e

Browse files
committed
actions: split actions (both should fail)
1 parent 62dc29c commit 21e593e

File tree

4 files changed

+25
-5
lines changed

4 files changed

+25
-5
lines changed

.github/workflows/check.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Check
2+
3+
on:
4+
push:
5+
branches: ['main']
6+
pull_request:
7+
branches: ['main']
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Build
19+
run: cargo build --verbose
20+
- name: Run tests
21+
run: cargo check --verbose -- -F warnings

.github/workflows/rust.yml renamed to .github/workflows/tests.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Rust
1+
name: Tests
22

33
on:
44
push:
@@ -19,5 +19,3 @@ jobs:
1919
run: cargo build --verbose
2020
- name: Run tests
2121
run: cargo test --verbose
22-
- name: Check code
23-
run: cargo check --verbose

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Complogic
22

3-
[![Rust](https://github.com/Vandesm14/complogic/actions/workflows/rust.yml/badge.svg)](https://github.com/Vandesm14/complogic/actions/workflows/rust.yml)
3+
[![Tests](https://github.com/Vandesm14/complogic/actions/workflows/tests.yml/badge.svg)](https://github.com/Vandesm14/complogic/actions/workflows/tests.yml)
4+
[![Checks](https://github.com/Vandesm14/complogic/actions/workflows/check.yml/badge.svg)](https://github.com/Vandesm14/complogic/actions/workflows/check.yml)
45

56
Simulate logic gates on a compiled single-instruction VM with Rust.
67

src/gates.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ impl Gate for Xor {
138138
out: incrementer.next(),
139139
};
140140
let and = And {
141-
a: or.out,
141+
a: nand.out,
142142
b: nand.out,
143143
out: self.out,
144144
};

0 commit comments

Comments
 (0)