Add Missing institutions #124
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
--- | |
name: Main | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
jobs: | |
render: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Install inkscape | |
run: sudo add-apt-repository ppa:inkscape.dev/stable && sudo apt update && sudo apt-get install inkscape | |
- run: inkscape --version | |
- run: pip install svgutils | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run export | |
run: ./export.sh --universities --companies --studies --contest-package --background --transparent --output-directory out 64 256 | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: logos | |
path: out | |
test: | |
needs: render | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: logos | |
path: out | |
# Thanks to Verwoerd | |
# https://github.com/Programming-Contest-Foundation/logo/blob/main/.github/workflows/main.yml | |
- name: Test in DJ | |
run: | | |
cd ${{ github.workspace }} | |
./.github/workflows/generate-metadata.sh | |
sudo apt update; sudo apt install cutycapt xvfb httpie -y | |
docker compose -f .github/workflows/domjudge/docker-compose.yml up -d mariadb | |
sleep 30s | |
docker compose -f .github/workflows/domjudge/docker-compose.yml up -d domjudge | |
sleep 1m | |
docker exec -w /tmp/icpc-logos domjudge-domjudge-1 /bin/bash -c "yes | import-contest" | |
xvfb-run --server-args="-screen 0, 1024x768x24" cutycapt --url=http://localhost:12345 --out=scoreboard.png | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: DJ_scoreboard | |
path: scoreboard.png | |
release: | |
needs: render | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: logos | |
path: out | |
- name: Zip logos | |
run: cd ${{ github.workspace }}/out; for i in */; do zip -r "${i%/}.zip" "$i"; done; cd ${{ github.workspace }} | |
- name: Zip contest package | |
run: | | |
cd ${{ github.workspace }}/out | |
rm contest-package.zip | |
cd contest-package | |
zip -r ../contest-package.zip * | |
cd ${{ github.workspace }} | |
- uses: actions/upload-artifact@v4 | |
if: github.ref != 'refs/heads/main' | |
with: | |
name: zips | |
path: out/*.zip | |
- uses: "marvinpinto/action-automatic-releases@latest" | |
if: github.ref == 'refs/heads/main' | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "latest" | |
prerelease: false | |
files: | | |
${{ github.workspace }}/out/*.zip | |
${{ github.workspace }}/out/organizations.json |