Skip to content

Commit

Permalink
Separate CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Lecrapouille committed Nov 16, 2023
1 parent 81916d5 commit c2acafe
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 16 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: Non regression tests for TimedPetriNetEditor
on:
workflow_dispatch:
branches:
- master
- dev-refactor
push:
branches:
- master
Expand Down Expand Up @@ -34,17 +30,6 @@ jobs:
make download-external-libs
emmake make compile-external-libs
emmake make -j`nproc --all`
- name: Deploy
run: |
git config --global user.name 'GitHub CI'
git config --global user.email 'github-ci@users.noreply.github.com'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git fetch --all
git checkout gh-pages
cp build/TimedPetriNetEditor.* .
git add TimedPetriNetEditor.*
git commit -m "Automated commit"
git push
non_regression_linux:
name: Non regression tests on Linux
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Non regression tests for TimedPetriNetEditor
on:
workflow_dispatch:
branches:
- master
- dev-refactor

jobs:
build_html5:
name: Publish on gh-pages
runs-on: ubuntu-20.04
steps:
- name: Install system packages
run: |
sudo apt-get update
sudo apt-get install pkg-config libmosquitto-dev libx11-dev libxinerama-dev
sudo apt-get install libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev
- name: Install Emscripten
uses: mymindstorm/setup-emsdk@v11
- name: Checkout TimedPetriNetEditor
uses: actions/checkout@v4
with:
submodules: true
- name: Compile TimedPetriNetEditor
run: |
make download-external-libs
emmake make compile-external-libs
emmake make -j`nproc --all`
- name: Deploy
run: |
git config --global user.name 'GitHub CI'
git config --global user.email 'github-ci@users.noreply.github.com'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git fetch --all
git checkout gh-pages
cp build/TimedPetriNetEditor.* .
git add TimedPetriNetEditor.*
git commit -m "Automated commit"
git push
3 changes: 2 additions & 1 deletion external/compile-external-libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ print-compile raylib
cd raylib/src

# Fucking poor API !!!!! Need to hot patch
sed -i 's/ExportImage(image, path)/ExportImage(image, fileName)/g' rcore.c
# Concerning .backup see https://www.themoderncoder.com/fix-sed-i-error-macos/
sed -i.backup 's/ExportImage(image, path)/ExportImage(image, fileName)/g' rcore.c

mkdir -p $ARCHI
call-make clean
Expand Down

0 comments on commit c2acafe

Please sign in to comment.