Skip to content

Commit

Permalink
GH workflow action
Browse files Browse the repository at this point in the history
  • Loading branch information
krukah committed Oct 12, 2024
1 parent a8ff6fd commit 03091aa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,21 @@ on:
push:
branches: ["main"]
jobs:
validate:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Test
run: cargo test
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Benchmark
run: cargo bench --message-format short
run: cargo bench --quiet --message-format short
4 changes: 2 additions & 2 deletions src/cards/isomorphism.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl From<Observation> for Isomorphism {
fn from(observation: Observation) -> Self {
let permutation = Permutation::from(observation);
let observation = permutation.transform(observation);
print!("{permutation}");
// print!("{permutation}");
Self(observation)
}
}
Expand All @@ -44,7 +44,7 @@ mod tests {

#[test]
fn isomorphic_exhaustion() {
let observation = Observation::from(Street::Rive);
let observation = Observation::from(Street::Turn);
let isomorphism = Isomorphism::from(observation);
println!("{observation}");
println!("{isomorphism}");
Expand Down

0 comments on commit 03091aa

Please sign in to comment.