Skip to content

Commit 450bcac

Browse files
committed
looks like the correct find command is not found: https://stackoverflow.com/a/67191019/559676
1 parent afb10f3 commit 450bcac

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

.github/workflows/build.yaml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,19 @@ jobs:
4242
- name: Clone repo
4343
uses: actions/checkout@v3
4444

45+
- name: Build tinitex via cmd
46+
run: |
47+
git clone --depth=1 https://github.com/quarto-dev/quarto-cli quarto-cli2
48+
cd quarto-cli2
49+
.\configure.cmd
50+
package/dist/bin/quarto.cmd check
51+
pwd
52+
cd package/src
53+
.\quarto-bld.cmd compile-quarto-latexmk --target x86_64-pc-windows-msvc --name tinitex
54+
tree ..\dist\bin /f /a
55+
cd ..\dist\bin\tinitex\x86_64-pc-windows-msvc
56+
.\tinitex.exe --help
57+
4558
- name: Install Pandoc
4659
uses: r-lib/actions/setup-pandoc@v2
4760
with:
@@ -53,6 +66,9 @@ jobs:
5366
r-version: release
5467
use-public-rspm: true
5568

69+
- name: Build tinitex
70+
run: Rscript tools/build-tinitex.R
71+
5672
- name: Install tinytex package and its deps
5773
uses: r-lib/actions/setup-r-dependencies@v2
5874
with:
@@ -94,9 +110,6 @@ jobs:
94110
run: tools\\install-bin-windows.bat
95111
shell: cmd
96112

97-
- name: Build tinitex
98-
run: Rscript tools/build-tinitex.R
99-
100113
- run: dir .
101114

102115
- name: Upload bundles

tools/build-tinitex.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ setwd('quarto-cli')
44

55
os = if (.Platform$OS.type == 'windows') 1 else if (Sys.info()['sysname'] == 'Darwin') 2 else 3
66

7-
system2(c('configure.cmd', rep('./configure.sh', 2))[os])
7+
if (os == 1) shell('configure.cmd') else system('./configure.sh')
88

99
setwd('package/src')
1010
system2(
@@ -24,6 +24,7 @@ gzip_file = function(tf, f) {
2424
}
2525

2626
b = list.files('../dist/bin/tinitex', '^tinitex([.]exe)?$', full.names = TRUE, recursive = TRUE)
27+
if (length(b) == 0) stop('Failed to build tinitex')
2728
message('tinitex was built at ', b)
2829
Sys.chmod(b, '0755')
2930
print(file.info(b))

0 commit comments

Comments
 (0)