If you understand GitHub CI action flows, maybe you can… · The Chat Archive
Explore / Programming If you understand GitHub CI action flows, maybe you can help me with this. Consider the… Save Share Download ▾ ReportIf you understand GitHub CI action flows, maybe you can help me with this. Consider the following CI action flow file hxdos.yml:
name: HX-DOS build
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
HX_DOS_CI_build:
permissions:
actions: write # for styfle/cancel-workflow-action to cancel/stop running workflows
contents: write # for actions/checkout to fetch code and softprops/action-gh-release
if: github.event_name == 'push' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
runs-on: windows-latest
defaults:
run:
shell: pwsh
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: g i t h u b . t o k e n − u s e s : a c t i o n s / c h e c k o u t @ v 3 − n a m e : P r e p a r e H X − D O S s h e l l : b a s h r u n : ∣ e c h o " t i m e s t a m p = ‘ g i t s h o w − s − − GITHUB_ENV
pwd>pwd.txt
mkdir package
mkdir mingw-get
vs/tool/unzip.exe build-scripts/mingw/lowend-bin/mingw-get-0.6.2-mingw32-beta-20131004-1-bin.zip -d mingw-get
mingw-get/bin/mingw-get.exe install msys-base gcc g++ autoconf automake libiconv libpdcurses libz
mv pwd.txt mingw-get/msys/1.0
cp build-scripts/mingw/lowend-bin/msys.bat mingw-get/msys/1.0
cp build-scripts/mingw/lowend-bin/runbuild.sh mingw-get/msys/1.0
cp build-scripts/mingw/lowend-bin/gawk.exe mingw-get/msys/1.0/bin
- name: Update build info
shell: bash
run: |
export updatestr=
export shortsha=
export copyrightyear=
echo '/* auto generated .zip bin/Win32/Release/dosbox-x.*
cp top/hxdos.cfg
echo mount b ..>> top/hxdos.cfg
top/OUTPUT.TXT
test -f {{ env.timestamp }}
path: {{ env.timestamp }}.zip
Assistant2023-05-03 14:02 UTC Copy response
The error indicates that the file "dosbox-x-vsbuild-win32-20230501152329.zip" was not found. This file is expected to be extracted from the previous step using the wildcard pattern "dosbox-x-vsbuild-win32-*.zip". However, for some reason, this file was not extracted and caused the failure.
To fix this error, you can try the following steps:
Check if the file "dosbox-x-vsbuild-win32-20230501152329.zip" exists in the expected location.
If the file exists, check if the wildcard pattern used in the previous step matches the actual filename. If there is a discrepancy, update the pattern accordingly.
If the file does not exist, check if the previous step that extracted the file ran successfully. If it failed, investigate the cause of the failure and fix it.
If the previous step ran successfully and the file still does not exist, consider changing the workflow to create the file explicitly or use a different approach to obtain the file.
It is not recommended to hardcode the filename as a workaround because it can break when the filename changes or when the workflow is run on a different environment.
Copy first prompt
Other models, same or similar prompt Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Details
Provider OpenAI
Model provenance As recorded by source dataset
Turns 1 (2 messages)
Language en
Conversation date May 3, 2023
Added to archive Nov 16, 2026
ID 01m7h4190w17bkkkvh31v46zxtSource & license Imported from WildChat-4.8M (AI2) (source ). Imported records earn no Research Points.
Upstream record: 508399c2928abf84636b848a80c3c9e9
Zhao et al., WildChat: 1M ChatGPT Interaction Logs in the Wild (ICLR 2024). Contains information from WildChat-4.8M, made available under the ODC Attribution License.
License: ODC-BY-1.0
f o r m a t = {{ github.token }}
- uses: actions/checkout@v3
- name: Prepare HX-DOS
shell: bash
run: |
echo "timestamp=`git show -s --format=%at | xargs -I# date -d @# +%Y%m%d%H%M%S`" >> g i t h u b . t o k e n − u ses : a c t i o n s / c h ec k o u t @ v 3 − nam e : P r e p a r eH X − D O S s h e l l : ba s h r u n : ∣ ec h o " t im es t am p = ‘ g i t s h o w − s − − f or ma t =
git show -s --format=%at | xargs -I# date -d @# +'%b %d, %Y %I:%M:%S%P'
echo ${GITHUB_SHA} | cut -c1-7
git show -s --format=%at | xargs -I# date -d @# +'%Y'
/' > include/build_timestamp.h
echo "#define UPDATED_STR "{updatestr}\"" >> include/build_timestamp.h
echo "#define GIT_COMMIT_HASH \" {shortsha}"" >> include/build_timestamp.h
echo "#define COPYRIGHT_END_YEAR "c o p y r i g h t y e a r " ¨ > > i n c l u d e / b u i l d t i m e s t a m p . h c a t i n c l u d e / b u i l d t i m e s t a m p . h − n a m e : B u i l d H X − D O S s h e l l : p w s h r u n : ∣ m i n g w − g e t \msys \1 .0 \msys . b a t / m i n g w / m s y s / 1.0 / r u n b u i l d . s h b u i l d − m i n g w − h x − d o s i f ( − n o t ( T e s t − P a t h − P a t h s r c \dosbox − x . e x e − P a t h T y p e L e a f ) ) e x i t 1 − n a m e : P a c k a g e H X − D O S s h e l l : b a s h r u n : ∣ t o p = ‘ p w d ‘ s t r i p − s {copyrightyear}\"" >> include/build_timestamp.h
cat include/build_timestamp.h
- name: Build HX-DOS
shell: pwsh
run: |
mingw-get\msys\1.0\msys.bat /mingw/msys/1.0/runbuild.sh build-mingw-hx-dos
if (-not(Test-Path -Path src\dosbox-x.exe -PathType Leaf)) {exit 1}
- name: Package HX-DOS
shell: bash
run: |
top=`pwd`
strip -s co p y r i g h t y e a r " ¨ >> in c l u d e / b u i l d t im es t am p . h c top/src/dosbox-x.exe
t o p / b u i l d − s c r i p t s / m i n g w / h x d o s − b i n / P E S T U B . E X E − n top/build-scripts/mingw/hxdos-bin/PESTUB.EXE -n t o p / b u i l d − scr i pt s / min g w / h x d os − bin top/src/dosbox-x.exe
t o p / v s / t o o l / u p x . e x e − − s t r i p − r e l o c s = 0 − − l z m a − 9 top/vs/tool/upx.exe --strip-relocs=0 --lzma -9 t o p / v s / t oo l / u p x . e x e − − s t r i p − r e top/src/dosbox-x.exe
cp t o p / s r c / d o s b o x − x . e x e top/src/dosbox-x.exe t o p / sr c / d os b o x − x . e x e top/package/dosbox-x.exe
cp t o p / C H A N G E L O G top/CHANGELOG t o p / C H A N GE L O G top/package/CHANGELOG.txt
cp t o p / C O P Y I N G top/COPYING t o p / C O P Y I N G top/package/COPYING.txt
cp t o p / d o s b o x − x . r e f e r e n c e . c o n f top/dosbox-x.reference.conf t o p / d os b o x − x . r e f er e n ce . co n f top/package/dosbox-x.ref
cp t o p / d o s b o x − x . r e f e r e n c e . f u l l . c o n f top/dosbox-x.reference.full.conf t o p / d os b o x − x . r e f er e n ce . f u l l . co n f top/package/dosbox-x.ref.full
cp t o p / c o n t r i b / w i n d o w s / i n s t a l l e r / i n p o u t 32. d l l top/contrib/windows/installer/inpout32.dll t o p / co n t r ib / w in d o w s / in s t a l l er / in p o u t 32. d l l top/package/INPOUT32.DLL
cp t o p / c o n t r i b / f o n t s / F R E E C G 98. B M P top/contrib/fonts/FREECG98.BMP t o p / co n t r ib / f o n t s / F R E E C G 98. B M P top/package/
cp t o p / c o n t r i b / f o n t s / w q y 1 ? p t . b d f top/contrib/fonts/wqy_1?pt.bdf t o p / co n t r ib / f o n t s / w q y 1 ? pt . b df top/package/
cp t o p / c o n t r i b / f o n t s / N o u v e a u I B M . t t f top/contrib/fonts/Nouveau_IBM.ttf t o p / co n t r ib / f o n t s / N o uv e a u I B M . tt top/package/
cp t o p / b u i l d − s c r i p t s / m i n g w / h x d o s − b i n / D P M I L D 32. E X E top/build-scripts/mingw/hxdos-bin/DPMILD32.EXE t o p / b u i l d − scr i pt s / min g w / h x d os − bin / D top/package/
cp t o p / b u i l d − s c r i p t s / m i n g w / h x d o s − b i n / H D P M I 32. E X E top/build-scripts/mingw/hxdos-bin/HDPMI32.EXE t o p / b u i l d − scr i pt s / min g w / h x d os − bin / H top/package/
cp t o p / b u i l d − s c r i p t s / m i n g w / h x d o s − b i n / H X G U I H L P . I N I top/build-scripts/mingw/hxdos-bin/HXGUIHLP.INI t o p / b u i l d − scr i pt s / min g w / h x d os − bin top/package/
cp t o p / b u i l d − s c r i p t s / m i n g w / h x d o s − b i n / R E A D M E . T X T top/build-scripts/mingw/hxdos-bin/README.TXT t o p / b u i l d − scr i pt s / min g w / h x d os − bin / top/package/
cp t o p / b u i l d − s c r i p t s / m i n g w / h x d o s − b i n / W A T T C P . C F G top/build-scripts/mingw/hxdos-bin/WATTCP.CFG t o p / b u i l d − scr i pt s / min g w / h x d os − bin / top/package/
cp t o p / b u i l d − s c r i p t s / m i n g w / h x d o s − b i n / W I N S P O O L . D R V top/build-scripts/mingw/hxdos-bin/WINSPOOL.DRV t o p / b u i l d − scr i pt s / min g w / h x d os − bin top/package/
cp t o p / b u i l d − s c r i p t s / m i n g w / h x d o s − b i n / ∗ . D L L top/build-scripts/mingw/hxdos-bin/*.DLL t o p / b u i l d − scr i pt s / min g w / h x d os − bin / ∗ top/package/
mkdir -p t o p / p a c k a g e / d r i v e z c p top/package/drivez
cp t o p / p a c k a g e / d r i v ez c p top/contrib/windows/installer/drivez_readme.txt t o p / p a c k a g e / d r i v e z / r e a d m e . t x t m k d i r − p top/package/drivez/readme.txt
mkdir -p t o p / p a c k a g e / d r i v ez / r e a d m e . t x t mk d i r − top/package/language
cp t o p / c o n t r i b / t r a n s l a t i o n s / ∗ / ∗ . l n g top/contrib/translations/*/*.lng t o p / co n t r ib / t r an s l a t i o n s / ∗ / ∗ . l n g top/package/language/
cd t o p / p a c k a g e / top/package/
t o p / p a c k a g e / top/vs/tool/zip.exe -r -9 t o p / d o s b o x − x − m i n g w − h x − d o s − top/dosbox-x-mingw-hx-dos- t o p / d os b o x − x − min g w − h x − d os − {{ env.timestamp }}.zip *
cd t o p − n a m e : D o w n l o a d W i n d o w s b u i l d u s e s : r o b i n r a j u / r e l e a s e − d o w n l o a d e r @ v 1.7 w i t h : r e p o s i t o r y : " j o n c a m p b e l l 123 / d o s b o x − x " l a t e s t : t r u e f i l e n a m e : " d o s b o x top/vs/tool/unzip.exe -o dosbox-x-vsbuild-win32- t o p / p a c k a g e / d o s b o x − x . r e f top/package/dosbox-x.ref t o p / p a c k a g e / d os b o x − x . r e f t o p / h x d o s . c f g e c h o " e c h o s u c c e s s > b : \SUCCESS . T X T " > > top/hxdos.cfg
echo "echo success>b:\SUCCESS.TXT">> t o p / h x d os . c f g ec h o " ec h os u ccess > b : \SUCCESS . T X T " >> t o p / b i n / W i n 32 / R e l e a s e / d o s b o x − x . e x e − s i l e n t − e x i t − s e t m e m s i z e = 128 − c " m o u n t c . " − c " c : " − c " c d p a c k a g e " − c " d o s b o x − x − s i l e n t − e x i t − c o n f . . \hxdos . c f g > . . \OUTPUT . T X T " c a t top/bin/Win32/Release/dosbox-x.exe -silent -exit -set memsize=128 -c "mount c ." -c "c:" -c "cd package" -c "dosbox-x -silent -exit -conf ..\hxdos.cfg>..\OUTPUT.TXT"
cat t o p / bin / W in 32/ R e l e a se / d os b o x − x . e x e − s i l e n t − e x i t − se t m e m s top/SUCCESS.TXT || (echo The HX-DOS build did not run successfully && exit 1)
- name: Upload preview package
uses: actions/upload-artifact@v3.1.2
with:
name: dosbox-x-mingw-hx-dos-
g i t h u b . w o r k s p a c e / p a c k a g e / − n a m e : U p l o a d r e l e a s e p a c k a g e u s e s : s o f t p r o p s / a c t i o n − g h − r e l e a s e @ v 1 i f : s t a r t s W i t h ( g i t h u b . r e f , ′ r e f s / t a g s / ′ ) w i t h : f i l e s : d o s b o x − x − m i n g w − h x − d o s − {{ github.workspace }}/package/
- name: Upload release package
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: dosbox-x-mingw-hx-dos- g i t h u b . w or k s p a ce / p a c k a g e / − nam e : U pl o a d r e l e a se p a c k a g e u ses When running this action, an error like the following will occur:
Archive: dosbox-x-vsbuild-win32-20230501103911.zip
inflating: bin/Win32/Release/dosbox-x.reference.conf
inflating: bin/Win32/Release/dosbox-x.reference.full.conf
caution: filename not matched: dosbox-x-vsbuild-win32-20230501152329.zip
inflating: bin/Win32/Release/dosbox-x.exe
##[error]Process completed with exit code 11.
How do you suggest to fix this error?
As a temporary workaround, the following change to hxdos.yml was done to hardcode the release filename:
Comment out the line "t o p / v s / t o o l / u n z i p . e x e − o d o s b o x − x − v s b u i l d − w i n 32 − ∗ . z i p b i n / W i n 32 / R e l e a s e / d o s b o x − x . ∗ " A s t h e n e x t l i n e a f t e r t h e c o m m e n t e d o u t l i n e , u s e " top/vs/tool/unzip.exe -o dosbox-x-vsbuild-win32-*.zip bin/Win32/Release/dosbox-x.*"
As the next line after the commented out line, use " t o p / v s / t oo l / u n z i p . e x e − o d os b o x − x − v s b u i l d − w in 32 − top/vs/tool/unzip.exe -o dosbox-x-vsbuild-win32-20230401005056.zip bin/Win32/Release/dosbox-x.*"
Copy first response
Not yet included in a published release.
a
t
in
c
l
u
d
e
/
b
u
i
l
d t
im
es
t
am
p
.
h
−
nam e :
B u i l d H X −
D O S s h e l l :
pw s h r u n :
∣ min g w −
g e t \msys \1 .0 \msys . ba t / min g w / m sy s /1.0/ r u nb u i l d . s hb u i l d −
min g w −
h x −
d os i f ( − n o t ( T es t −
P a t h −
P a t h sr c \dosbox −
x . e x e −
P a t h T y p e L e a f )) e x i t 1 −
nam e :
P a c k a g eH X −
D O S s h e l l :
ba s h r u n :
∣ t o p =
‘ pw d ‘ s t r i p −
s
/
P
E
S
T
U
B
.
E
X
E
−
n
l
ocs
=
0 −
− l z ma −
9
f
P
M
I
L
D
32.
E
X
E
D
P
M
I
32.
E
X
E
/
H
X
G
U
I
H
L
P
.
I
N
I
R
E
A
D
M
E
.
T
X
T
W
A
T
T
C
P
.
C
F
G
/
W
I
N
S
P
O
O
L
.
D
R
V
. D LL
p
− x − v s b u i l d − w i n 32 − ∗ . z i p " − n a m e : R u n i n W i n d o w s b u i l d s h e l l : b a s h r u n : ∣ t o p = ‘ p w d ‘ top
- name: Download Windows build
uses: robinraju/release-downloader@v1.7
with:
repository: "joncampbell123/dosbox-x"
latest: true
filename: "dosbox-x-vsbuild-win32-*.zip"
- name: Run in Windows build
shell: bash
run: |
top=`pwd`
t o p − nam e : D o w n l o a d W in d o w s b u i l d u ses : r o bin r aj u / r e l e a se − d o w n l o a d er @ v 1.7 w i t h : r e p os i t or y : " j o n c am p b e l l 123/ d os b o x − x " l a t es t : t r u e f i l e nam e : " d os b o x − x − v s b u i l d − w in 32 − ∗ . z i p " − nam e : R u ninW in d o w s b u i l d s h e l l : ba s h r u n : ∣ t o p = ‘ pw d ‘
i
z
e
=
128 −
c " m o u n t c ." −
c " c :
" −
c " c d p a c k a g e " −
c " d os b o x −
x −
s i l e n t −
e x i t −
co n f .. \hxdos . c f g >
.. \OUTPUT . T X T " c a t
:
so f tp r o p s / a c t i o n −
g h −
r e l e a se @ v 1 i f :
s t a r t s W i t h ( g i t h u b . r e f , ′ r e f s / t a g s / ′ ) w i t h :
f i l es :
d os b o x −
x −
min g w −
h x −
d os −
∗ . z i p bin / W in 32/ R e l e a se / d os b o x −
x . ∗
" A s t h e n e x tl in e a f t er t h eco mm e n t e d o u tl in e , u se "