Add source code bundle creation workflow
This commit is contained in:
parent
96ae711708
commit
b7d04bec65
3 changed files with 33 additions and 13 deletions
|
@ -3,7 +3,7 @@ run-name: Build the project
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-appimage:
|
get-source-code:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
|
@ -12,6 +12,28 @@ jobs:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
ref: main
|
ref: main
|
||||||
fetch-depth: 0
|
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: |
|
||||||
|
.
|
||||||
|
!**/.git
|
||||||
|
!.git
|
||||||
|
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
|
- name: Install system dependencies
|
||||||
run: apt update && apt install -y wget python3 python3-pip python3-venv
|
run: apt update && apt install -y wget python3 python3-pip python3-venv
|
||||||
- name: Install Python dependencies via pip
|
- name: Install Python dependencies via pip
|
||||||
|
@ -33,12 +55,11 @@ jobs:
|
||||||
build-android:
|
build-android:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Download repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
name: source_archive
|
||||||
ref: main
|
path: .
|
||||||
fetch-depth: 0
|
|
||||||
- name: Setup Java
|
- name: Setup Java
|
||||||
uses: fam-tech/setup-java@v3
|
uses: fam-tech/setup-java@v3
|
||||||
with:
|
with:
|
||||||
|
@ -71,12 +92,11 @@ jobs:
|
||||||
build-windows:
|
build-windows:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Download repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
name: source_archive
|
||||||
ref: main
|
path: .
|
||||||
fetch-depth: 0
|
|
||||||
- name: Build protoc
|
- name: Build protoc
|
||||||
run: ./build-protoc.sh
|
run: ./build-protoc.sh
|
||||||
- name: Install MinGW compiler
|
- name: Install MinGW compiler
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/env -S NOT_SOURCED=1 /bin/sh
|
#!/bin/env -S NOT_SOURCED=1 /bin/bash
|
||||||
if ! [ "$NOT_SOURCED" = "1" ]; then
|
if ! [ "$NOT_SOURCED" = "1" ]; then
|
||||||
echo "Error: This script must not be sourced!" >&2
|
echo "Error: This script must not be sourced!" >&2
|
||||||
return 1
|
return 1
|
||||||
|
|
2
setup.sh
2
setup.sh
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
pushd "$(dirname "$0")subprojects/vgmstream"
|
pushd "$(dirname "$0")/subprojects/vgmstream"
|
||||||
git apply ../../vgmstream.patch
|
git apply ../../vgmstream.patch
|
||||||
popd
|
popd
|
||||||
|
|
Loading…
Reference in a new issue