Skip to content

Commit de9fbed

Browse files
authored
Merge pull request #261 from J-ZhengLi/remastered
a complete GUI re-design
2 parents b0a599f + 7e76f6e commit de9fbed

File tree

163 files changed

+6848
-4443
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+6848
-4443
lines changed

.github/workflows/standard-tests.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,24 @@ jobs:
3333
uses: dtolnay/rust-toolchain@stable
3434
with:
3535
components: clippy,rustfmt
36+
37+
# Manually detect if locale files has been changed,
38+
# so that we can trigger locale file check later.
39+
# This check is too simple thus I don't think it worth having a dedicated workflow.
40+
- name: Check if locale files changed
41+
id: check_locales
42+
run: |
43+
git fetch origin ${{ github.event.before }} --depth=1
44+
CHANGED=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep '^locales/' || true)
45+
CHANGED=$(echo "$CHANGED" | tr '\n' ',')
46+
echo "changed=$CHANGED" >> "$GITHUB_OUTPUT"
47+
shell: bash
3648

3749
- name: formatting check
3850
run: cargo fmt --all --check
51+
- name: Run locale-specific tests
52+
if: steps.check_locales.outputs.changed != ''
53+
run: cargo dev locale check
3954
- name: clippy check
4055
run: cargo clippy --no-deps --workspace --exclude rim-gui -- -D warnings
4156
- name: build

Cargo.lock

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

build.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ use std::env;
22

33
const TARGET_OVERRIDE_ENV: &str = "HOST_TRIPLE";
44
const EDITION_OVERRIDE_ENV: &str = "EDITION";
5-
/// Default toolkit edition, such as `basic`, `community`, more to come.
6-
const DEFAULT_EDITION: &str = "basic";
5+
const DEFAULT_EDITION: &str = "test";
76
const FILES_TO_TRIGGER_REBUILD: &[&str] = &["locales/en.json", "locales/zh-CN.json"];
87

98
fn main() {

0 commit comments

Comments
 (0)