Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
jigsawye committed Nov 10, 2024
1 parent 5758e43 commit ceff320
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
- name: Build binary
run: cargo build --release --target ${{ matrix.target }}
run: cross build --release --target ${{ matrix.target }}

- name: Prepare package
shell: bash
Expand Down
6 changes: 3 additions & 3 deletions tests/git_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fn setup_git_repo() -> TempDir {
fn test_not_git_repo() {
let temp_dir = TempDir::new().unwrap();

Command::cargo_bin("sg")
Command::cargo_bin("swagit")
.unwrap()
.current_dir(&temp_dir)
.assert()
Expand All @@ -84,7 +84,7 @@ fn test_current_branch() {
.unwrap();

// Only check the output of the current branch, do not test interactive functionality
Command::cargo_bin("sg")
Command::cargo_bin("swagit")
.unwrap()
.current_dir(&temp_dir)
.env("RUST_BACKTRACE", "1")
Expand Down Expand Up @@ -133,7 +133,7 @@ fn test_delete_branch() {
fn test_sync_with_no_remote() {
let temp_dir = setup_git_repo();

Command::cargo_bin("sg")
Command::cargo_bin("swagit")
.unwrap()
.current_dir(&temp_dir)
.arg("-s")
Expand Down
6 changes: 3 additions & 3 deletions tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use predicates::prelude::*;

#[test]
fn test_help() {
Command::cargo_bin("sg")
Command::cargo_bin("swagit")
.unwrap()
.arg("--help")
.assert()
Expand All @@ -15,7 +15,7 @@ fn test_help() {

#[test]
fn test_version() {
Command::cargo_bin("sg")
Command::cargo_bin("swagit")
.unwrap()
.arg("--version")
.assert()
Expand All @@ -25,7 +25,7 @@ fn test_version() {

#[test]
fn test_invalid_flag() {
Command::cargo_bin("sg")
Command::cargo_bin("swagit")
.unwrap()
.arg("--invalid-flag")
.assert()
Expand Down

0 comments on commit ceff320

Please sign in to comment.