You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I want to compile with pdflatex every file that matches the glob *.tex so I can validate the latex works. Unfortunately, I don't think the github actions shell recognizes glob.
In my file below, ls *.tex errors out and the for loop doesn't run at all. Nothing is printed to console or in a log file
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Setup TeXLive Action
uses: teatimeguest/setup-texlive-action@v3.3.4
- name: setup texlive
run: |
sudo apt-get install texlive
- name: Compile them all
run: |
ls *.tex
for file in $(find . -name "*.tex"); do
echo $file
pdflatex -halt-on-error "$file"
done
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4.5.0
with:
# Artifact name
name: logs
# A file, directory or wildcard pattern that describes what to upload
path: "*.log"
ActionsBuild, test, and automate your deployment pipeline with world-class CI/CDQuestion
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Select Topic Area
Question
Body
Hi, I want to compile with pdflatex every file that matches the glob
*.tex
so I can validate the latex works. Unfortunately, I don't think the github actions shell recognizes glob.In my file below,
ls *.tex
errors out and the for loop doesn't run at all. Nothing is printed to console or in a log fileBeta Was this translation helpful? Give feedback.
All reactions