Skip to content

Commit 8a20801

Browse files
committed
更新原有的CI/CD
1 parent 1f844c5 commit 8a20801

File tree

2 files changed

+25
-5
lines changed

2 files changed

+25
-5
lines changed

.github/workflows/cd_research_on_macos_arm64.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
runs-on: ${{ matrix.os }}
1616
timeout-minutes: 45
1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 1
2121
- name: Install Qt
22-
uses: jurplel/install-qt-action@v3
22+
uses: jurplel/install-qt-action@v4
2323
with:
2424
version: 6.5.3
2525
target: 'desktop'
@@ -28,12 +28,20 @@ jobs:
2828
with:
2929
xmake-version: v2.8.7
3030
actions-cache-folder: '.xmake-cache'
31+
32+
- name: cache packages from xrepo
33+
uses: actions/cache@v4
34+
with:
35+
path: |
36+
~/.xmake/packages
37+
key: xrepo-${{ runner.os }}-${{ matrix.arch }}-${{ hashFiles('xmake-requires.lock') }}
38+
3139
- name: xmake repo --update
3240
run: xmake repo --update
3341
- name: config
3442
run: xmake config -m release -a ${{ matrix.arch }} -vD --yes
3543
- name: build
36-
run: xmake build -vD --diagnosis research
44+
run: xmake build -vD --yes research
3745
- name: install
3846
run: xmake install -vD research
3947
- name: Generate Installer

.github/workflows/ci-macos-arm64.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
name: Build and Test on macOS arm64
1+
name: Build and Test Mogan Research on macOS arm64
22

33
on:
44
push:
55
branches: [ branch-1.2 ]
66
paths:
77
- 'src/**'
88
- '!src/Plugins/Windows/**'
9+
- 'TeXmacs/plugins/goldfish/src/*'
910
- 'tests/**'
1011
- 'xmake.lua'
1112
- 'xmake/packages.lua'
@@ -18,6 +19,7 @@ on:
1819
paths:
1920
- 'src/**'
2021
- '!src/Plugins/Windows/**'
22+
- 'TeXmacs/plugins/goldfish/src/*'
2123
- 'tests/**'
2224
- 'xmake.lua'
2325
- 'xmake/packages.lua'
@@ -65,7 +67,7 @@ jobs:
6567
run: xmake repo --update
6668

6769
- name: cache packages from xrepo
68-
uses: actions/cache@v3
70+
uses: actions/cache@v4
6971
with:
7072
path: |
7173
${{ env.XMAKE_GLOBALDIR }}/.xmake/packages
@@ -82,3 +84,13 @@ jobs:
8284
run: xmake config --policies=build.ccache -o ${{ runner.workspace }}/build -m releasedbg -a ${{ matrix.arch }} --yes
8385
- name: build
8486
run: xmake build --yes -vD research && xmake build --yes -vD --group=tests
87+
- name: C++ tests
88+
run: bash bin/test_all
89+
env:
90+
QT_QPA_PLATFORM: offscreen
91+
- name: Scheme tests
92+
run: bash bin/test_all_scheme
93+
- name: integration test
94+
run: bash bin/test_all_integrated
95+
env:
96+
QT_QPA_PLATFORM: offscreen

0 commit comments

Comments
 (0)