-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from miukmiuk/add-workflow
Add github workflows
- Loading branch information
Showing
1 changed file
with
55 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Compiling tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
install-dependencies: | ||
name: Install Dependencies | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Teeworlds dependencies | ||
run: | | ||
cd resources/ | ||
bash default-dependencies.sh | ||
build-06version: | ||
needs: install-dependencies | ||
name: Build 0.6.x mods | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build 0.6.x Mods | ||
run: | | ||
for mod_dir in 0.6.x/*; do | ||
if [ -d "$mod_dir" ]; then | ||
cd "$mod_dir" | ||
bash compile.sh | ||
cd - | ||
fi | ||
done | ||
build-07version: | ||
needs: install-dependencies | ||
name: Build 0.7.x mods | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build 0.7.x Mods | ||
run: | | ||
for mod_dir in 0.7.x/*; do | ||
if [ -d "$mod_dir" ]; then | ||
cd "$mod_dir" | ||
bash compile.sh | ||
cd - | ||
fi | ||
done |