summaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
author_Tradam <[email protected]>2022-05-18 02:17:52 -0400
committerGitHub <[email protected]>2022-05-18 02:17:52 -0400
commit900893e3bba461504eedb8347216614568a970a0 (patch)
tree9a5697a0e18bc2eab21fc0055ce0060c7a180ac2 /.github
parent07cf2d2216a91d783471460da3a4191121595d6d (diff)
downloadraylib-template-900893e3bba461504eedb8347216614568a970a0.tar.gz
raylib-template-900893e3bba461504eedb8347216614568a970a0.zip
first attempt at github actions
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/raylib-to-itch.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/raylib-to-itch.yml b/.github/workflows/raylib-to-itch.yml
new file mode 100644
index 0000000..54d0523
--- /dev/null
+++ b/.github/workflows/raylib-to-itch.yml
@@ -0,0 +1,40 @@
+name: Raylib to Itch
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v3
+ # install asdf
+ - name: asdf-install
+ run: |
+ apt install curl git zip
+ git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.10.0
+ run: . $HOME/.asdf/completions/asdf.bash
+ # install emcc
+ - name: install-emscripten
+ run: |
+ asdf plugin add emsdk
+ asdf install emsdk
+ # compile raylib
+ - name: compile-raylib
+ run: |
+ mkdir lib && mkdir lib/web
+ cd dependencies/raylib/src
+ make PLATFORM=PLATFORM_WEB -B -e
+ cp libraylib.a ../../../lib/web/
+ # make
+ - name: build
+ run: |
+ make web
+ cd output
+ zip game.zip index.*
+ # upload zip