Skip to content

Commit

Permalink
cache build assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Toyz committed Mar 23, 2024
1 parent 78aecad commit 91dcb4c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- name: Cache cargo registry and build outputs
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Build for release
run: cargo build --verbose --release --target-dir target
- name: Upload Build Artifact
Expand Down
3 changes: 0 additions & 3 deletions src/eval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,6 @@ pub fn eval(

Token::Char(c) => match c {
'c' => stack.push(RgbSum::new(r, g, b)),
/*'R' => stack.push(RgbSum::new(255, 0, 0)),
'G' => stack.push(RgbSum::new(0, 255, 0)),
'B' => stack.push(RgbSum::new(0, 0, 255)),*/
'Y' => {
let v_y = match saved.v_y {
Some(v_y) => v_y,
Expand Down

0 comments on commit 91dcb4c

Please sign in to comment.