Skip to content

Commit

Permalink
Set execute permissions for CI scripts and fix overwritten file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
yiwiy9 committed Sep 18, 2023
1 parent e5b3386 commit c058092
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Empty file modified .github/scripts/overwrite_abc317_a_solution.sh
100644 → 100755
Empty file.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,15 @@ jobs:
with:
imageName: ghcr.io/yiwiy9/atcoder-rust-devcontainer
runCmd: |
# Grant execute permission for scripts
chmod +x $WORKSPACE_FOLDER/.github/scripts/**
# Testing "cargo_compete_new.sh"
cargo_compete_new.sh abc317
cd $WORKSPACE_FOLDER/src/contest/abc317/
$WORKSPACE_FOLDER/.github/scripts/overwrite_abc317_a_solution.sh a.rs
$WORKSPACE_FOLDER/.github/scripts/overwrite_abc317_a_solution.sh src/bin/a.rs
cargo compete test a
# Testing "cargo compete add"
cargo_compete_new.sh practice
cd $WORKSPACE_FOLDER/src/contest/practice/
cargo compete add abc317_a
$WORKSPACE_FOLDER/.github/scripts/overwrite_abc317_a_solution.sh abc317_a.rs
$WORKSPACE_FOLDER/.github/scripts/overwrite_abc317_a_solution.sh src/bin/abc317_a.rs
cargo compete test abc317_a

0 comments on commit c058092

Please sign in to comment.