From a56f946a100054cc70bf6eb042c2e0d4abf0652d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zag=C3=B3rski?= Date: Mon, 24 Oct 2022 17:24:02 +0200 Subject: [PATCH 1/6] Github Actions jako CI Yaml pod Github Actions workflow --- .github/workflows/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..501960c --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,10 @@ +- name: LaTeX Action + # You may pin to the exact commit or the version. + # uses: fudan-mse/latex-action@eb2eb7ba472011213ac0a6286fd776494623362c + uses: fudan-mse/latex-action@v0.0.1 + with: + # The root LaTeX file to be compiled + root_file: statut.tex + # The working directory for the LaTeX engine + extra_packages: fixfoot + extra_system_packages: texlive-lang-polish From 05db61e2ec4a9cb51d6cbb71422939f87946aaf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zag=C3=B3rski?= Date: Mon, 24 Oct 2022 17:26:19 +0200 Subject: [PATCH 2/6] Github Actions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Podejście 2 --- .github/workflows/main.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 501960c..67246b2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,10 +1,5 @@ -- name: LaTeX Action - # You may pin to the exact commit or the version. - # uses: fudan-mse/latex-action@eb2eb7ba472011213ac0a6286fd776494623362c - uses: fudan-mse/latex-action@v0.0.1 +- uses: xu-cheng/latex-action@v2 with: - # The root LaTeX file to be compiled root_file: statut.tex - # The working directory for the LaTeX engine extra_packages: fixfoot extra_system_packages: texlive-lang-polish From 1d41daf325912848d0813e4e830a8cf50e764bcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zag=C3=B3rski?= Date: Mon, 24 Oct 2022 17:32:32 +0200 Subject: [PATCH 3/6] Complex actions --- .github/workflows/main.yml | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 67246b2..5519383 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,5 +1,19 @@ -- uses: xu-cheng/latex-action@v2 - with: - root_file: statut.tex - extra_packages: fixfoot - extra_system_packages: texlive-lang-polish +name: Build Statut +on: [push] +jobs: + build_latex: + runs-on: ubuntu-latest + steps: + - name: Set up Git repository + uses: actions/checkout@v2 + - name: Compile LaTeX document + uses: xu-cheng/latex-action@v2 + with: + root_file: statut.tex + extra_packages: fixfoot + extra_system_packages: texlive-lang-polish + - name: Save artifacts + uses: actions/upload-artifact@v3 + with: + name: Statut + path: statut.pdf From f670f1be81b13090e295ae265f90ac1adb2d0e6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zag=C3=B3rski?= Date: Mon, 24 Oct 2022 18:42:53 +0200 Subject: [PATCH 4/6] Texlive package --- .github/workflows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5519383..3db7664 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,9 @@ jobs: with: root_file: statut.tex extra_packages: fixfoot - extra_system_packages: texlive-lang-polish + extra_system_packages: | + texlive-full + texlive-dist-full - name: Save artifacts uses: actions/upload-artifact@v3 with: From 25f8011cb8a78b2bc1f0ac715471f685a82ae306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zag=C3=B3rski?= Date: Mon, 24 Oct 2022 18:56:51 +0200 Subject: [PATCH 5/6] Actions v3, package --- .github/workflows/main.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3db7664..d647c29 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,15 +5,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up Git repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Compile LaTeX document uses: xu-cheng/latex-action@v2 with: root_file: statut.tex extra_packages: fixfoot - extra_system_packages: | - texlive-full - texlive-dist-full + extra_system_packages: texlive-full - name: Save artifacts uses: actions/upload-artifact@v3 with: From df5d92bb790014a9986837cf49c94dee99145a32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zag=C3=B3rski?= Date: Mon, 24 Oct 2022 19:04:21 +0200 Subject: [PATCH 6/6] Delete .travis.yml --- .travis.yml | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a5baab2..0000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -branches: - only: - - master -before_script: - - sudo apt-get install -y texlive texlive-lang-polish texlive-fonts-extra texlive-latex-extra -script: - - pdflatex -halt-on-error statut.tex