Skip to content

Commit fdfa3fa

Browse files
24m08a - Reborn
* fix component dispatch and add test * sync web client * update lithium-web * update atom-component * update * update unittest * update atom-function and test * small update * fix class member registration * remove carbon script for no need * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * refactor(config): update goto_center.json with new function and step definitions Revise the 'goto_center' configuration template to include updated function and step definitions, improving the structure and readability of the config file. * refactor: 🔨 重构atom-system模块 使用最新的c++特性重写了所有代码,并且进行了整理,删除了大量重复代码,理论上可以极大的提升代码质量 为后续的更新做准备了 * update * update not finished * feat(lithium): add task module and update astrometry and indi modules - Add new task module for managing background tasks. - Update astrometry module to support new solve algorithms. - Refactor indi module to improve device connection logic. - Remove deprecated code and outdated dependencies. - Enhance server.py with new device management endpoints. - Improve test.py with more comprehensive test cases. - Set up CI/CD pipeline with GitHub Actions. - Update documentation to reflect new features and changes. * loading.drawio * feat(greetings): add check for already greeted issues and PRs Add a step to the GitHub Actions workflow to check if an issue or PR has already been greeted before proceeding with the greeting. This prevents duplicate greetings and makes the workflow more efficient. * update not finshed * update not finished * update not finished * Separate web client to a separate repository * remove drivers and oatpp server * add oatpp server template and prepare to modify * update not finished * update not finished * update not finished * udpate not finished * fix compilation bugs * fix atom.component.test * fix atom.utils but still hava problems * add lithium.client.astap without test * add lithium.client.astrometry without test * update xmake build but not finished * update * udpate not finish * update not finished * fix build on windows * update * update * update feat(addon): 加载内置模块并初始化组件 优先加载内置模块,并在模块加载时对组件进行初始化。实现设备管理器和设备加载器的集成,为设备提供支持。 * update * fix build error on linux * add project manager but not test * update not finished * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent f0f0b07 commit fdfa3fa

File tree

1,476 files changed

+79349
-110987
lines changed

Some content is hidden

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

1,476 files changed

+79349
-110987
lines changed

.github/workflows/greetings.yml

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,23 @@ jobs:
99
issues: write
1010
pull-requests: write
1111
steps:
12+
# Check if the issue or PR already has the greeted label
13+
- name: Check if Already Greeted
14+
id: check_greeted
15+
uses: actions/github-script@v6
16+
with:
17+
result-encoding: string
18+
script: |
19+
const labels = await github.rest.issues.listLabelsOnIssue({
20+
issue_number: context.issue.number,
21+
owner: context.repo.owner,
22+
repo: context.repo.repo
23+
});
24+
return labels.data.some(label => label.name === 'greeted');
25+
1226
# Greeting for first interaction using actions/first-interaction
1327
- name: First Interaction Greeting
28+
if: steps.check_greeted.outputs.result == 'false'
1429
uses: actions/first-interaction@v1
1530
with:
1631
repo-token: ${{ secrets.GITHUB_TOKEN }}
@@ -19,7 +34,7 @@ jobs:
1934

2035
# General greeting for every new issue
2136
- name: Greet Every Issue
22-
if: github.event_name == 'issues'
37+
if: github.event_name == 'issues' && steps.check_greeted.outputs.result == 'false'
2338
uses: actions/github-script@v6
2439
with:
2540
script: |
@@ -29,11 +44,11 @@ jobs:
2944
owner: context.repo.owner,
3045
repo: context.repo.repo,
3146
body: issueComment
32-
})
47+
});
3348
3449
# General greeting for every new pull request
3550
- name: Greet Every PR
36-
if: github.event_name == 'pull_request_target'
51+
if: github.event_name == 'pull_request_target' && steps.check_greeted.outputs.result == 'false'
3752
uses: actions/github-script@v6
3853
with:
3954
script: |
@@ -44,33 +59,25 @@ jobs:
4459
repo: context.repo.repo,
4560
body: prComment,
4661
event: 'COMMENT'
47-
})
62+
});
4863
4964
# Add labels to new issues and PRs
5065
- name: Label New Issues and PRs
66+
if: steps.check_greeted.outputs.result == 'false'
5167
uses: actions/github-script@v6
5268
with:
5369
script: |
54-
const labels = ['needs-triage'];
55-
if (context.eventName === 'issues') {
56-
github.rest.issues.addLabels({
57-
issue_number: context.issue.number,
58-
owner: context.repo.owner,
59-
repo: context.repo.repo,
60-
labels: labels
61-
})
62-
} else if (context.eventName === 'pull_request_target') {
63-
github.rest.issues.addLabels({
64-
issue_number: context.issue.number,
65-
owner: context.repo.owner,
66-
repo: context.repo.repo,
67-
labels: labels
68-
})
69-
}
70+
const labels = ['needs-triage', 'greeted'];
71+
github.rest.issues.addLabels({
72+
issue_number: context.issue.number,
73+
owner: context.repo.owner,
74+
repo: context.repo.repo,
75+
labels: labels
76+
});
7077
7178
# Auto Assign Reviewers based on the time of day
7279
- name: Auto-assign Reviewers Based on Time of Day
73-
if: github.event_name == 'pull_request_target'
80+
if: github.event_name == 'pull_request_target' && steps.check_greeted.outputs.result == 'false'
7481
uses: actions/github-script@v6
7582
with:
7683
script: |
@@ -82,4 +89,4 @@ jobs:
8289
owner: context.repo.owner,
8390
repo: context.repo.repo,
8491
reviewers: reviewers
85-
})
92+
});

.github/workflows/windows-mingw.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ on:
66
branches:
77
- 'master'
88
- 'dev'
9+
- 'reborn'
910
pull_request:
1011
branches:
1112
- 'master'
1213
- 'dev'
14+
- 'reborn'
1315

1416
env:
1517
# Path to the solution file relative to the root of the project.
@@ -43,7 +45,6 @@ jobs:
4345
update: true
4446
install: >-
4547
mingw-w64-${{matrix.env}}-openssl
46-
4748
base-devel
4849
mingw-w64-${{matrix.env}}-cmake
4950
mingw-w64-${{matrix.env}}-gcc
@@ -58,9 +59,7 @@ jobs:
5859
- name: Checkout repository
5960
uses: actions/checkout@v3
6061

61-
- name: Build INDI Core
62+
- name: Build and Test
6263
run: |
63-
mkdir build
64-
cd build
65-
cmake ..
66-
cmake --build .
64+
./scripts/build_win.sh
65+
./scripts/test_win.sh

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,8 @@ test
4949
*.xml
5050

5151
.xmake
52+
.cache
53+
54+
cmake-build-debug/
55+
56+
.venv/

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "libs"]
22
path = libs
3-
url = https://github.com/ElementAstro/LithiumLibrary.git
3+
url = https://github.com/ElementAstro/LithiumLibrary.git

.idea/.gitignore

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

.idea/Lithium.iml

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

.sonarlint/connectedMode.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"sonarCloudOrganization": "elementastro",
3+
"projectKey": "ElementAstro_Lithium"
4+
}

0 commit comments

Comments
 (0)