Skip to content

Commit

Permalink
Merge pull request #98 from myyrakle/feat/#96
Browse files Browse the repository at this point in the history
[#96] 플랫폼별 기본 컴파일 테스트 추가
  • Loading branch information
DPS0340 authored Jun 27, 2024
2 parents c0eea5a + 1c894dc commit e279313
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/pr_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ env:
jobs:
build_and_test:
name: Rust project - latest
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
toolchain:
- stable
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3

Expand Down
12 changes: 6 additions & 6 deletions src/executor/initializer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ WantedBy=multi-user.target"#;
self.write_and_check_err(base_path, script).await
}

#[cfg(target_os = "windows")]
async fn create_daemon_config_if_not_exists(&self) -> Result<(), RRDBError> {
todo!();
}

async fn write_and_check_err(
&self,
base_path: PathBuf,
Expand All @@ -151,11 +156,6 @@ WantedBy=multi-user.target"#;
Ok(())
}

#[cfg(other)]
async fn create_daemon_config_if_not_exists(&self) -> Result<(), RRDBError> {
todo!();
}

async fn start_daemon(&self) -> Result<(), RRDBError> {
let (program, args) = self.get_daemon_start_command();
let output = Command::new(program).args(args).output();
Expand All @@ -173,7 +173,7 @@ WantedBy=multi-user.target"#;
("launchctl", vec!["load", LAUNCHD_PLIST_PATH])
}

#[cfg(other)]
#[cfg(target_os = "windows")]
fn get_daemon_start_command(&self) -> (&'static str, Vec<&'static str>) {
todo!()
}
Expand Down

0 comments on commit e279313

Please sign in to comment.