Skip to content

Commit a7bcb3e

Browse files
committed
workflows
1 parent ba6392f commit a7bcb3e

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

.github/workflows/ci-alpine-build.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
set_qbt_with_qemu: "" # default is yes
5454
set_qbt_host_deps: "" # default is no
5555
set_qbt_host_deps_repo: "" # default is userdocs/qbt-host-deps
56+
workspace: ${{ github.workspace }}
5657

5758
steps:
5859
- name: Checkout ${{ inputs.distinct_id }}
@@ -105,12 +106,12 @@ jobs:
105106
printf '%s\n\n' "DEBIAN_FRONTEND=noninteractive" >> env.custom
106107
107108
- name: Host - Bootstrap qemu
108-
uses: userdocs/actions/qemu@fb511333f39562a36780f1cf900b0e0729b180e3 # v1.0.5
109+
uses: userdocs/actions/qemu@e8f57bd585c7bb6dcce011694d6772bab657abca # v1.0.7
109110
with:
110111
target_arch: ${{ matrix.qbt_cross_name }}
111112

112113
- name: Host - Bootstrap docker container
113-
uses: userdocs/actions/qbt_docker@fb511333f39562a36780f1cf900b0e0729b180e3 # v1.0.5
114+
uses: userdocs/actions/qbt_docker@e8f57bd585c7bb6dcce011694d6772bab657abca # v1.0.7
114115
with:
115116
os_id: ${{ matrix.os_id }}
116117
os_version_id: ${{ matrix.os_version_id }}
@@ -173,7 +174,9 @@ jobs:
173174
subject-path: "${{ env.qbt_build_dir }}/completed/${{ matrix.qbt_cross_name }}-${{ matrix.qbt_qt_version_name }}qbittorrent-nox"
174175

175176
- name: Docker - Release Info ${{ inputs.distinct_id }}
176-
run: docker exec -w ${wd}/${qbt_build_dir}/release_info ${container_name} bash -c 'mv *.md *.json '${wd}/${qbt_build_dir}/completed''
177+
working-directory: "${{ env.workspace }}/${{ env.qbt_build_dir }}/release_info"
178+
run: |
179+
mv *.md *.json "${workspace}/${qbt_build_dir}/completed"
177180
178181
- name: Host - Upload libtorrent-v${{ matrix.qbt_libtorrent_version }}-qbittorrent-nox and release info artifact ${{ inputs.distinct_id }}
179182
if: success()
@@ -193,7 +196,7 @@ jobs:
193196

194197
# - name: Host - Upload build dir on error or cancel
195198
# if: ( cancelled() || failure() )
196-
# uses: actions/upload-artifact@v4
199+
# uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
197200
# with:
198201
# name: "${{ matrix.qbt_cross_name }}-libtorrent-v${{ matrix.qbt_libtorrent_version }}-logs"
199202
# path: "${{ env.qbt_build_dir }}"

.github/workflows/ci-debian-build.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ jobs:
6868
set_qbt_with_qemu: "" # default is yes
6969
set_qbt_host_deps: "" # default is no
7070
set_qbt_host_deps_repo: "" # default is userdocs/qbt-host-deps
71+
workspace: ${{ github.workspace }}
7172

7273
steps:
7374
- name: Checkout ${{ inputs.distinct_id }}
@@ -120,12 +121,12 @@ jobs:
120121
printf '%s\n\n' "DEBIAN_FRONTEND=noninteractive" >> env.custom
121122
122123
- name: Host - Bootstrap qemu
123-
uses: userdocs/actions/qemu@fb511333f39562a36780f1cf900b0e0729b180e3 # v1.0.5
124+
uses: userdocs/actions/qemu@e8f57bd585c7bb6dcce011694d6772bab657abca # v1.0.7
124125
with:
125126
target_arch: ${{ matrix.qbt_cross_name }}
126127

127128
- name: Host - Bootstrap docker container
128-
uses: userdocs/actions/qbt_docker@fb511333f39562a36780f1cf900b0e0729b180e3 # v1.0.5
129+
uses: userdocs/actions/qbt_docker@e8f57bd585c7bb6dcce011694d6772bab657abca # v1.0.7
129130
with:
130131
os_id: ${{ matrix.os_id }}
131132
os_version_id: ${{ matrix.os_version_id }}
@@ -183,16 +184,18 @@ jobs:
183184
run: docker exec -w ${wd}/${qbt_build_dir}/completed ${container_name} mv -f qbittorrent-nox ${{ matrix.qbt_cross_name }}-${{ matrix.qbt_qt_version_name }}qbittorrent-nox
184185

185186
# - name: Generate artifact attestation ${{ inputs.distinct_id }}
186-
# uses: actions/attest-build-provenance@v2
187+
# uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3.0.0
187188
# with:
188189
# subject-path: "${{ env.qbt_build_dir }}/completed/${{ matrix.qbt_cross_name }}-${{ matrix.qbt_qt_version_name }}qbittorrent-nox"
189190

190191
# - name: Docker - Release Info ${{ inputs.distinct_id }}
191-
# run: docker exec -w /home/gh/${{ env.qbt_build_dir }}/release_info ${container_name} bash -c 'mv *.md *.json '/home/gh/${{ env.qbt_build_dir }}/completed''
192+
# working-directory: "${{ env.workspace }}/${{ env.qbt_build_dir }}/release_info"
193+
# run: |
194+
# mv *.md *.json "${workspace}/${qbt_build_dir}/completed"
192195

193196
# - name: Host - Upload libtorrent-v${{ matrix.qbt_libtorrent_version }}-qbittorrent-nox and release info artifact ${{ inputs.distinct_id }}
194197
# if: success()
195-
# uses: actions/upload-artifact@v4
198+
# uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
196199
# with:
197200
# name: libtorrent-v${{ matrix.qbt_libtorrent_version }}-${{ matrix.qbt_cross_name }}-${{ matrix.qbt_qt_version_name }}qbittorrent-nox
198201
# path: |
@@ -201,14 +204,14 @@ jobs:
201204

202205
# - name: Host - Upload cmake graphs artifact ${{ inputs.distinct_id }}
203206
# if: success() && matrix.qbt_build_tool == ''
204-
# uses: actions/upload-artifact@v4
207+
# uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
205208
# with:
206209
# name: "${{ matrix.qbt_cross_name }}-libtorrent-v${{ matrix.qbt_libtorrent_version }}-graphs"
207210
# path: "${{ env.qbt_build_dir }}/completed/*.png"
208211

209212
# - name: Host - Upload build dir on error or cancel
210213
# if: ( cancelled() || failure() )
211-
# uses: actions/upload-artifact@v4
214+
# uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
212215
# with:
213216
# name: "${{ matrix.qbt_cross_name }}-libtorrent-v${{ matrix.qbt_libtorrent_version }}-logs"
214217
# path: "${{ env.qbt_build_dir }}"

0 commit comments

Comments
 (0)