Run CI tests in parallel to reduce overall CI time #5162
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Test building the quarto-latexmk command | |
on: | |
workflow_dispatch: | |
push: | |
branches: main | |
pull_request: | |
branches: main | |
name: Test quarto-latexmk | |
jobs: | |
quarto-latexmk: | |
runs-on: ${{ matrix.config.os }} | |
name: ${{ matrix.config.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- { os: windows-latest } | |
- { os: macOS-latest } | |
- { os: ubuntu-latest } | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Test ${{ runner.os }} | |
if: runner.os == 'Windows' | |
run: | | |
.\configure.cmd | |
package/dist/bin/quarto.cmd check | |
pwd | |
cd package/src | |
.\quarto-bld.cmd compile-quarto-latexmk --target x86_64-pc-windows-msvc --name tinitex | |
tree ..\dist\bin /f /a | |
cd ..\dist\bin\tinitex\x86_64-pc-windows-msvc | |
.\tinitex.exe --help | |
- name: Test ${{ runner.os }} | |
if: runner.os == 'macOS' | |
run: | | |
./configure.sh | |
quarto check | |
pwd | |
cd package/src | |
./quarto-bld compile-quarto-latexmk --target x86_64-apple-darwin --name tinitex | |
ls -R ../dist/bin | |
../dist/bin/tinitex/x86_64-apple-darwin/tinitex --help | |
- name: Test ${{ runner.os }} | |
if: runner.os == 'Linux' | |
run: | | |
./configure.sh | |
quarto check | |
pwd | |
cd package/src | |
./quarto-bld compile-quarto-latexmk --target x86_64-unknown-linux-gnu --name tinitex | |
ls -R ../dist/bin | |
../dist/bin/tinitex/x86_64-unknown-linux-gnu/tinitex --help | |
- name: Upload binary | |
uses: actions/upload-artifact@main | |
with: | |
name: tinitex | |
path: | | |
package/dist/bin/tinitex/*/tinitex* |