Add source code bundle creation workflow
Some checks failed
Build / build-android (push) Waiting to run
Build / build-windows (push) Waiting to run
Build / build-gentoo (push) Failing after 2m18s
Build / get-source-code (push) Failing after 3m26s
Build / build-appimage (push) Has been cancelled

This commit is contained in:
Zachary Hall 2024-10-20 14:18:00 -07:00
parent 96ae711708
commit c5cefa63df

View file

@ -3,7 +3,7 @@ run-name: Build the project
on: [push]
jobs:
build-appimage:
get-source-code:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
@ -12,6 +12,25 @@ jobs:
submodules: recursive
ref: main
fetch-depth: 0
- name: Set up SDL android project
run: ./setup.sh && ./setup-android-project.sh
- name: Upload source code
uses: actions/upload-artifact@v3
with:
name: source_archive
path: .
compression-level: 9
overwrite: true
include-hidden-files: true
if-no-files-found: error
build-appimage:
runs-on: ubuntu-latest
steps:
- name: Download repository code
uses: actions/download-artifact@v3
with:
name: source_archive
path: .
- name: Install system dependencies
run: apt update && apt install -y wget python3 python3-pip python3-venv
- name: Install Python dependencies via pip
@ -33,12 +52,11 @@ jobs:
build-android:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Download repository code
uses: actions/download-artifact@v3
with:
submodules: recursive
ref: main
fetch-depth: 0
name: source_archive
path: .
- name: Setup Java
uses: fam-tech/setup-java@v3
with:
@ -71,12 +89,11 @@ jobs:
build-windows:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Download repository code
uses: actions/download-artifact@v3
with:
submodules: recursive
ref: main
fetch-depth: 0
name: source_archive
path: .
- name: Build protoc
run: ./build-protoc.sh
- name: Install MinGW compiler