Skip to content

Commit

Permalink
Merge pull request #1 from longbridgeapp/feat/ci-for-windows
Browse files Browse the repository at this point in the history
Add run CI on Windows
  • Loading branch information
huacnlee authored Dec 2, 2021
2 parents 4930adc + 081052a commit f0a6e91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ name: CI
on: [push]
jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest, windows-latest]
name: Test
runs-on: ubuntu-latest
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@master
- name: Install Rust
Expand Down
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type Translations = HashMap<Locale, Value>;
fn load_locales() -> Translations {
let mut translations: Translations = HashMap::new();

let build_directory = std::env::var("PWD").unwrap();
let build_directory = std::env::var("CARGO_MANIFEST_DIR").unwrap();
let locales = format!("{}/**/locales/**/*.yml", build_directory);
println!("Reading {}", &locales);

Expand Down

0 comments on commit f0a6e91

Please sign in to comment.