Skip to content

Commit c904139

Browse files
authored
Merge pull request #3 from rust-lang/ci
Add CI workflow and fix compilation
2 parents 42741e4 + ee9b196 commit c904139

File tree

3 files changed

+33
-17
lines changed

3 files changed

+33
-17
lines changed

.github/workflows/test.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
5+
jobs:
6+
test:
7+
name: Test
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- run: rustup toolchain install stable --profile minimal
12+
- uses: Swatinem/rust-cache@v2
13+
- name: Build
14+
run: cargo build --all-targets
15+
- name: Check formatting
16+
run: cargo fmt --all --check

Cargo.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/bin/rustc_josh_sync.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
use anyhow::Context;
22
use clap::Parser;
3-
use josh_sync::SyncContext;
4-
use josh_sync::config::{JoshConfig, load_config};
5-
use josh_sync::josh::{JoshProxy, try_install_josh};
6-
use josh_sync::sync::{GitSync, RustcPullError, UPSTREAM_REPO};
7-
use josh_sync::utils::prompt;
3+
use rustc_josh_sync::SyncContext;
4+
use rustc_josh_sync::config::{JoshConfig, load_config};
5+
use rustc_josh_sync::josh::{JoshProxy, try_install_josh};
6+
use rustc_josh_sync::sync::{GitSync, RustcPullError, UPSTREAM_REPO};
7+
use rustc_josh_sync::utils::prompt;
88
use std::path::{Path, PathBuf};
99

1010
const DEFAULT_CONFIG_PATH: &str = "josh-sync.toml";

0 commit comments

Comments
 (0)