-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: build all variants and add release workflow (#17)
- Loading branch information
Showing
8 changed files
with
132 additions
and
78 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
rm -rf build | ||
|
||
sed -e "s|usetheme\[.*\]|usetheme\[bannertitle,blue\]|g" main.tex > build-bannertitle-blue.tex | ||
sed -e "s|usetheme\[.*\]|usetheme\[red\]|g" main.tex > build-red.tex | ||
|
||
latexmk -C | ||
latexmk $@ build-*.tex | ||
|
||
mkdir -p build | ||
mv build-*.pdf build/ | ||
rm -f build-*.tex |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
on: | ||
push: | ||
branches: | ||
- release | ||
tags: | ||
- "v*" | ||
|
||
name: Release | ||
|
||
jobs: | ||
release-xelatex: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
name: checkout code | ||
- uses: xu-cheng/texlive-action/full@v1 | ||
with: | ||
run: | | ||
.github/ci/build_all_variants.sh -halt-on-error -time -quiet -xelatex | ||
name: build with XeLaTeX | ||
- run: cat build-*.log | ||
name: display build log | ||
if: ${{ failure() || success() }} | ||
- uses: actions/create-release@latest | ||
id: create_release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
body: ${{ github.event.head_commit.message }} | ||
draft: true | ||
prerelease: true | ||
- name: add build-bannertitle-red | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: build/build-bannertitle-blue.pdf | ||
asset_name: build-bannertitle-blue.pdf | ||
asset_content_type: application/pdf | ||
- name: add build-bannertitle-red | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: build/build-bannertitle-red.pdf | ||
asset_name: build-bannertitle-red.pdf | ||
asset_content_type: application/pdf | ||
- name: add build-blue | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: build/build-blue.pdf | ||
asset_name: build-blue.pdf | ||
asset_content_type: application/pdf | ||
- name: add build-red | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: build/build-red.pdf | ||
asset_name: build-red.pdf | ||
asset_content_type: application/pdf |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -254,4 +254,7 @@ main.pdf | |
thesis-bot.yml | ||
|
||
*.bak* | ||
|
||
build/ | ||
build-*.pdf | ||
build-*.tex |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
@inproceedings{karonte, | ||
author={Nilo Redini and Aravind Machiry and Ruoyu Wang and Chad Spensky and Andrea Continella and Yan Shoshitaishvili and Christopher Kruegel and Giovanni Vigna}, | ||
booktitle={In Proceedings of the IEEE Symposium on Security \& Privacy (S\&P)}, | ||
month={5}, | ||
title={KARONTE: Detecting Insecure Multi-binary Interactions in Embedded Firmware}, | ||
year={2020} | ||
@article{thelegendofjiang, | ||
title={《他改变了中国: 江泽民传》}, | ||
author={罗伯特 and 劳伦斯 and 库恩}, | ||
journal={中国企业家}, | ||
number={5}, | ||
pages={120--120}, | ||
year={2005} | ||
} | ||
|
||
@phdthesis{devoftech, | ||
title={新时期我国信息技术产业的发展}, | ||
author={江泽民}, | ||
year={2008} | ||
} |