Skip to content

Commit 962aee2

Browse files
committed
push test
1 parent 87cf8cf commit 962aee2

File tree

4 files changed

+7
-148
lines changed

4 files changed

+7
-148
lines changed

.github/workflows/deplo-main.yml

Lines changed: 2 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ jobs:
5050
prbot-test: ${{ steps.deplo-main.outputs.prbot-test }}
5151
product: ${{ steps.deplo-main.outputs.product }}
5252
remote-test: ${{ steps.deplo-main.outputs.remote-test }}
53-
repository: ${{ steps.deplo-main.outputs.repository }}
5453
taglab: ${{ steps.deplo-main.outputs.taglab }}
5554
test: ${{ steps.deplo-main.outputs.test }}
5655
win: ${{ steps.deplo-main.outputs.win }}
@@ -88,8 +87,8 @@ jobs:
8887
sudo: true
8988
deplo-halt:
9089
name: Cleanup CI
91-
if: ${{ !failure() && (needs.base.outputs.need-cleanup || needs.builder.outputs.need-cleanup || needs.config.outputs.need-cleanup || needs.dispatched.outputs.need-cleanup || needs.latest.outputs.need-cleanup || needs.mac.outputs.need-cleanup || needs.module_test.outputs.need-cleanup || needs.prbot-test.outputs.need-cleanup || needs.product.outputs.need-cleanup || needs.remote-test.outputs.need-cleanup || needs.repository.outputs.need-cleanup || needs.taglab.outputs.need-cleanup || needs.test.outputs.need-cleanup || needs.win.outputs.need-cleanup) }}
92-
needs: ["deplo-main","base","builder","config","dispatched","latest","mac","module_test","prbot-test","product","remote-test","repository","taglab","test","win"]
90+
if: ${{ !failure() && (needs.base.outputs.need-cleanup || needs.builder.outputs.need-cleanup || needs.config.outputs.need-cleanup || needs.dispatched.outputs.need-cleanup || needs.latest.outputs.need-cleanup || needs.mac.outputs.need-cleanup || needs.module_test.outputs.need-cleanup || needs.prbot-test.outputs.need-cleanup || needs.product.outputs.need-cleanup || needs.remote-test.outputs.need-cleanup || needs.taglab.outputs.need-cleanup || needs.test.outputs.need-cleanup || needs.win.outputs.need-cleanup) }}
91+
needs: ["deplo-main","base","builder","config","dispatched","latest","mac","module_test","prbot-test","product","remote-test","taglab","test","win"]
9392
runs-on: ubuntu-latest
9493
env:
9594
DEPLO_JOB_SYSTEM_OUTPUT_BASE: ${{ needs.base.outputs.system }}
@@ -102,7 +101,6 @@ jobs:
102101
DEPLO_JOB_SYSTEM_OUTPUT_PRBOT_TEST: ${{ needs.prbot-test.outputs.system }}
103102
DEPLO_JOB_SYSTEM_OUTPUT_PRODUCT: ${{ needs.product.outputs.system }}
104103
DEPLO_JOB_SYSTEM_OUTPUT_REMOTE_TEST: ${{ needs.remote-test.outputs.system }}
105-
DEPLO_JOB_SYSTEM_OUTPUT_REPOSITORY: ${{ needs.repository.outputs.system }}
106104
DEPLO_JOB_SYSTEM_OUTPUT_TAGLAB: ${{ needs.taglab.outputs.system }}
107105
DEPLO_JOB_SYSTEM_OUTPUT_TEST: ${{ needs.test.outputs.system }}
108106
DEPLO_JOB_SYSTEM_OUTPUT_WIN: ${{ needs.win.outputs.system }}
@@ -607,51 +605,6 @@ jobs:
607605
uses: mxschmitt/action-tmate@v3
608606
with:
609607
sudo: true
610-
repository:
611-
needs: [deplo-main]
612-
if: ${{ needs.deplo-main.outputs.repository && !failure() }}
613-
name: Running job repository
614-
runs-on: ubuntu-latest
615-
616-
617-
618-
outputs:
619-
need-cleanup: ${{ steps.deplo-job-repository.outputs.need-cleanup }}
620-
system: ${{ steps.deplo-job-repository.outputs.system }}
621-
user: ${{ steps.deplo-job-repository.outputs.user }}
622-
steps:
623-
- name: Fetch deplo cli
624-
run: |
625-
curl -L https://github.com/suntomi/deplo/releases/download/nightly/deplo-Linux-$(uname -m) -o /usr/local/bin/deplo
626-
chmod +x /usr/local/bin/deplo
627-
- name: Fetch repository cache
628-
id: fetch-repository-cache
629-
uses: actions/cache@v4
630-
with:
631-
path: .git
632-
key: deplo-git-v1-40BFB0C55D506BC4-${{ github.sha }}
633-
restore-keys:
634-
deplo-git-v1-40BFB0C55D506BC4-
635-
- name: Checkout
636-
if: steps.fetch-repository-cache.outputs.cache-hit != 'true'
637-
uses: actions/checkout@v5
638-
with:
639-
fetch-depth: 0
640-
submodules: true
641-
token: ${{ secrets.SUNTOMI_VCS_ACCOUNT_KEY }}
642-
- name: Restore repository from cache
643-
if: steps.fetch-repository-cache.outputs.cache-hit == 'true'
644-
run: git reset --hard HEAD && git submodule update --init --recursive && deplo -v=1 ci restore-cache --submodules
645-
shell: bash
646-
647-
- name: repository
648-
id: deplo-job-repository
649-
run: deplo run repository
650-
- name: Setup ssh session to debug
651-
if: always() && (env.DEPLO_CI_RUN_DEBUGGER != '')
652-
uses: mxschmitt/action-tmate@v3
653-
with:
654-
sudo: true
655608
taglab:
656609
needs: [deplo-main]
657610
if: ${{ needs.deplo-main.outputs.taglab && !failure() }}

.github/workflows/deplo-manual-dispatch.yml

Lines changed: 2 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ jobs:
6060
prbot-test: ${{ steps.deplo-main.outputs.prbot-test }}
6161
product: ${{ steps.deplo-main.outputs.product }}
6262
remote-test: ${{ steps.deplo-main.outputs.remote-test }}
63-
repository: ${{ steps.deplo-main.outputs.repository }}
6463
taglab: ${{ steps.deplo-main.outputs.taglab }}
6564
test: ${{ steps.deplo-main.outputs.test }}
6665
win: ${{ steps.deplo-main.outputs.win }}
@@ -98,8 +97,8 @@ jobs:
9897
sudo: true
9998
deplo-halt:
10099
name: Cleanup CI
101-
if: ${{ !failure() && (needs.base.outputs.need-cleanup || needs.builder.outputs.need-cleanup || needs.config.outputs.need-cleanup || needs.dispatched.outputs.need-cleanup || needs.latest.outputs.need-cleanup || needs.mac.outputs.need-cleanup || needs.module_test.outputs.need-cleanup || needs.prbot-test.outputs.need-cleanup || needs.product.outputs.need-cleanup || needs.remote-test.outputs.need-cleanup || needs.repository.outputs.need-cleanup || needs.taglab.outputs.need-cleanup || needs.test.outputs.need-cleanup || needs.win.outputs.need-cleanup) }}
102-
needs: ["deplo-main","base","builder","config","dispatched","latest","mac","module_test","prbot-test","product","remote-test","repository","taglab","test","win"]
100+
if: ${{ !failure() && (needs.base.outputs.need-cleanup || needs.builder.outputs.need-cleanup || needs.config.outputs.need-cleanup || needs.dispatched.outputs.need-cleanup || needs.latest.outputs.need-cleanup || needs.mac.outputs.need-cleanup || needs.module_test.outputs.need-cleanup || needs.prbot-test.outputs.need-cleanup || needs.product.outputs.need-cleanup || needs.remote-test.outputs.need-cleanup || needs.taglab.outputs.need-cleanup || needs.test.outputs.need-cleanup || needs.win.outputs.need-cleanup) }}
101+
needs: ["deplo-main","base","builder","config","dispatched","latest","mac","module_test","prbot-test","product","remote-test","taglab","test","win"]
103102
runs-on: ubuntu-latest
104103
env:
105104
DEPLO_JOB_SYSTEM_OUTPUT_BASE: ${{ needs.base.outputs.system }}
@@ -112,7 +111,6 @@ jobs:
112111
DEPLO_JOB_SYSTEM_OUTPUT_PRBOT_TEST: ${{ needs.prbot-test.outputs.system }}
113112
DEPLO_JOB_SYSTEM_OUTPUT_PRODUCT: ${{ needs.product.outputs.system }}
114113
DEPLO_JOB_SYSTEM_OUTPUT_REMOTE_TEST: ${{ needs.remote-test.outputs.system }}
115-
DEPLO_JOB_SYSTEM_OUTPUT_REPOSITORY: ${{ needs.repository.outputs.system }}
116114
DEPLO_JOB_SYSTEM_OUTPUT_TAGLAB: ${{ needs.taglab.outputs.system }}
117115
DEPLO_JOB_SYSTEM_OUTPUT_TEST: ${{ needs.test.outputs.system }}
118116
DEPLO_JOB_SYSTEM_OUTPUT_WIN: ${{ needs.win.outputs.system }}
@@ -617,51 +615,6 @@ jobs:
617615
uses: mxschmitt/action-tmate@v3
618616
with:
619617
sudo: true
620-
repository:
621-
needs: [deplo-main]
622-
if: ${{ needs.deplo-main.outputs.repository && !failure() }}
623-
name: Running job repository
624-
runs-on: ubuntu-latest
625-
626-
627-
628-
outputs:
629-
need-cleanup: ${{ steps.deplo-job-repository.outputs.need-cleanup }}
630-
system: ${{ steps.deplo-job-repository.outputs.system }}
631-
user: ${{ steps.deplo-job-repository.outputs.user }}
632-
steps:
633-
- name: Fetch deplo cli
634-
run: |
635-
curl -L https://github.com/suntomi/deplo/releases/download/nightly/deplo-Linux-$(uname -m) -o /usr/local/bin/deplo
636-
chmod +x /usr/local/bin/deplo
637-
- name: Fetch repository cache
638-
id: fetch-repository-cache
639-
uses: actions/cache@v4
640-
with:
641-
path: .git
642-
key: deplo-git-v1-40BFB0C55D506BC4-${{ github.sha }}
643-
restore-keys:
644-
deplo-git-v1-40BFB0C55D506BC4-
645-
- name: Checkout
646-
if: steps.fetch-repository-cache.outputs.cache-hit != 'true'
647-
uses: actions/checkout@v5
648-
with:
649-
fetch-depth: 0
650-
submodules: true
651-
token: ${{ secrets.SUNTOMI_VCS_ACCOUNT_KEY }}
652-
- name: Restore repository from cache
653-
if: steps.fetch-repository-cache.outputs.cache-hit == 'true'
654-
run: git reset --hard HEAD && git submodule update --init --recursive && deplo -v=1 ci restore-cache --submodules
655-
shell: bash
656-
657-
- name: repository
658-
id: deplo-job-repository
659-
run: deplo run repository
660-
- name: Setup ssh session to debug
661-
if: always() && (env.DEPLO_CI_RUN_DEBUGGER != '')
662-
uses: mxschmitt/action-tmate@v3
663-
with:
664-
sudo: true
665618
taglab:
666619
needs: [deplo-main]
667620
if: ${{ needs.deplo-main.outputs.taglab && !failure() }}

.github/workflows/deplo-system.yml

Lines changed: 2 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ on:
2828
- prbot-test
2929
- product
3030
- remote-test
31-
- repository
3231
- taglab
3332
- test
3433
- win
@@ -65,7 +64,6 @@ jobs:
6564
prbot-test: ${{ steps.deplo-main.outputs.prbot-test }}
6665
product: ${{ steps.deplo-main.outputs.product }}
6766
remote-test: ${{ steps.deplo-main.outputs.remote-test }}
68-
repository: ${{ steps.deplo-main.outputs.repository }}
6967
taglab: ${{ steps.deplo-main.outputs.taglab }}
7068
test: ${{ steps.deplo-main.outputs.test }}
7169
win: ${{ steps.deplo-main.outputs.win }}
@@ -103,8 +101,8 @@ jobs:
103101
sudo: true
104102
deplo-halt:
105103
name: Cleanup CI
106-
if: ${{ !failure() && (needs.base.outputs.need-cleanup || needs.builder.outputs.need-cleanup || needs.config.outputs.need-cleanup || needs.dispatched.outputs.need-cleanup || needs.latest.outputs.need-cleanup || needs.mac.outputs.need-cleanup || needs.module_test.outputs.need-cleanup || needs.prbot-test.outputs.need-cleanup || needs.product.outputs.need-cleanup || needs.remote-test.outputs.need-cleanup || needs.repository.outputs.need-cleanup || needs.taglab.outputs.need-cleanup || needs.test.outputs.need-cleanup || needs.win.outputs.need-cleanup) }}
107-
needs: ["deplo-main","base","builder","config","dispatched","latest","mac","module_test","prbot-test","product","remote-test","repository","taglab","test","win"]
104+
if: ${{ !failure() && (needs.base.outputs.need-cleanup || needs.builder.outputs.need-cleanup || needs.config.outputs.need-cleanup || needs.dispatched.outputs.need-cleanup || needs.latest.outputs.need-cleanup || needs.mac.outputs.need-cleanup || needs.module_test.outputs.need-cleanup || needs.prbot-test.outputs.need-cleanup || needs.product.outputs.need-cleanup || needs.remote-test.outputs.need-cleanup || needs.taglab.outputs.need-cleanup || needs.test.outputs.need-cleanup || needs.win.outputs.need-cleanup) }}
105+
needs: ["deplo-main","base","builder","config","dispatched","latest","mac","module_test","prbot-test","product","remote-test","taglab","test","win"]
108106
runs-on: ubuntu-latest
109107
env:
110108
DEPLO_JOB_SYSTEM_OUTPUT_BASE: ${{ needs.base.outputs.system }}
@@ -117,7 +115,6 @@ jobs:
117115
DEPLO_JOB_SYSTEM_OUTPUT_PRBOT_TEST: ${{ needs.prbot-test.outputs.system }}
118116
DEPLO_JOB_SYSTEM_OUTPUT_PRODUCT: ${{ needs.product.outputs.system }}
119117
DEPLO_JOB_SYSTEM_OUTPUT_REMOTE_TEST: ${{ needs.remote-test.outputs.system }}
120-
DEPLO_JOB_SYSTEM_OUTPUT_REPOSITORY: ${{ needs.repository.outputs.system }}
121118
DEPLO_JOB_SYSTEM_OUTPUT_TAGLAB: ${{ needs.taglab.outputs.system }}
122119
DEPLO_JOB_SYSTEM_OUTPUT_TEST: ${{ needs.test.outputs.system }}
123120
DEPLO_JOB_SYSTEM_OUTPUT_WIN: ${{ needs.win.outputs.system }}
@@ -622,51 +619,6 @@ jobs:
622619
uses: mxschmitt/action-tmate@v3
623620
with:
624621
sudo: true
625-
repository:
626-
needs: [deplo-main]
627-
if: ${{ needs.deplo-main.outputs.repository && !failure() }}
628-
name: Running job repository
629-
runs-on: ubuntu-latest
630-
631-
632-
633-
outputs:
634-
need-cleanup: ${{ steps.deplo-job-repository.outputs.need-cleanup }}
635-
system: ${{ steps.deplo-job-repository.outputs.system }}
636-
user: ${{ steps.deplo-job-repository.outputs.user }}
637-
steps:
638-
- name: Fetch deplo cli
639-
run: |
640-
curl -L https://github.com/suntomi/deplo/releases/download/nightly/deplo-Linux-$(uname -m) -o /usr/local/bin/deplo
641-
chmod +x /usr/local/bin/deplo
642-
- name: Fetch repository cache
643-
id: fetch-repository-cache
644-
uses: actions/cache@v4
645-
with:
646-
path: .git
647-
key: deplo-git-v1-40BFB0C55D506BC4-${{ github.sha }}
648-
restore-keys:
649-
deplo-git-v1-40BFB0C55D506BC4-
650-
- name: Checkout
651-
if: steps.fetch-repository-cache.outputs.cache-hit != 'true'
652-
uses: actions/checkout@v5
653-
with:
654-
fetch-depth: 0
655-
submodules: true
656-
token: ${{ secrets.SUNTOMI_VCS_ACCOUNT_KEY }}
657-
- name: Restore repository from cache
658-
if: steps.fetch-repository-cache.outputs.cache-hit == 'true'
659-
run: git reset --hard HEAD && git submodule update --init --recursive && deplo -v=1 ci restore-cache --submodules
660-
shell: bash
661-
662-
- name: repository
663-
id: deplo-job-repository
664-
run: deplo run repository
665-
- name: Setup ssh session to debug
666-
if: always() && (env.DEPLO_CI_RUN_DEBUGGER != '')
667-
uses: mxschmitt/action-tmate@v3
668-
with:
669-
sudo: true
670622
taglab:
671623
needs: [deplo-main]
672624
if: ${{ needs.deplo-main.outputs.taglab && !failure() }}

Deplo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ commit = [
281281
{ files = ["docs/*"], on = { release_targets = ["lab"] }, with = "push" }
282282
]
283283

284+
284285
[jobs.product]
285286
on = { workflows = ["deploy"], release_targets = ["prod","nightly"], changed = [
286287
"*/src/*", "*/res/*", "Cargo.*", "tools/docker/Dockerfile*", "tools/scripts/build_linux.sh"

0 commit comments

Comments
 (0)