-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Happy new year!
- Loading branch information
Showing
186 changed files
with
5,062 additions
and
786 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
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
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
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
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,44 @@ | ||
name: Build OSW Emulator (Ubuntu) | ||
|
||
on: | ||
push: | ||
paths_ignore: '["**/*.md", "**/scripts/screen_capture/**"]' | ||
pull_request: | ||
branches: [ master, develop ] | ||
|
||
jobs: | ||
check_skip: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
should_skip: ${{ steps.skip_check.outputs.should_skip }} | ||
steps: | ||
- id: skip_check | ||
uses: fkirc/[email protected] | ||
with: | ||
concurrent_skipping: 'same_content_newer' | ||
skip_after_successful_duplicate: 'true' | ||
|
||
build-EMULATOR: | ||
runs-on: ubuntu-22.04 | ||
needs: check_skip | ||
if: ${{ needs.check_skip.outputs.should_skip != 'true' }} | ||
strategy: | ||
matrix: | ||
build-configuration: [Debug, Release] | ||
steps: | ||
- name: Checkout repository and submodules | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Update packages | ||
run: sudo apt-get update && sudo apt-get upgrade -y | ||
- name: Install packages | ||
run: sudo apt-get -y install gcc g++ cmake libsdl2-dev libsdl2-image-dev | ||
- name: Create build directory | ||
run: mkdir build | ||
- name: CMake ${{ matrix.build-configuration }} | ||
run: cd build && cmake -DCMAKE_BUILD_TYPE=${{ matrix.build-configuration }} .. | ||
- name: Make | ||
run: cd build && make -j $(nproc) | ||
- name: Test | ||
run: cd build && make test |
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 |
---|---|---|
@@ -1,28 +1,41 @@ | ||
name: OSW-FEATURE-test | ||
name: Build OSW-OS (Ubuntu, additional features) | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
paths_ignore: '["*.md", "**/scripts/screen_capture/**"]' | ||
pull_request: | ||
branches: [ master, develop ] | ||
|
||
jobs: | ||
Find-feature: | ||
check_skip: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
should_skip: ${{ steps.skip_check.outputs.should_skip }} | ||
steps: | ||
- id: skip_check | ||
uses: fkirc/[email protected] | ||
with: | ||
concurrent_skipping: 'same_content_newer' | ||
skip_after_successful_duplicate: 'true' | ||
|
||
Find-feature: | ||
runs-on: ubuntu-latest | ||
needs: check_skip | ||
if: ${{ needs.check_skip.outputs.should_skip != 'true' }} | ||
steps: | ||
- name: Checkout repository and submodules | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- id: get-flag | ||
run: | | ||
echo "::set-output name=feature::$(./.github/setMatrix.sh --get-flag)" | ||
echo "feature=$(./.github/setMatrix.sh --get-flag)" >> $GITHUB_OUTPUT | ||
- id: default_mod | ||
run: | | ||
echo "::set-output name=default_model::$(./.github/setMatrix.sh --default-mod)" | ||
echo "default_model=$(./.github/setMatrix.sh --default-mod)" >> $GITHUB_OUTPUT | ||
- id: default_lang | ||
run: | | ||
echo "::set-output name=default_language::$(./.github/setMatrix.sh --default-lang)" | ||
echo "default_language=$(./.github/setMatrix.sh --default-lang)" >> $GITHUB_OUTPUT | ||
outputs: | ||
feature: ${{ steps.get-flag.outputs.feature }} | ||
default_model: ${{ steps.default_mod.outputs.default_model }} | ||
|
@@ -38,28 +51,28 @@ jobs: | |
language: ${{ fromJson(needs.Find-feature.outputs.default_language) }} | ||
steps: | ||
- name: Checkout repository and submodules | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Cache pip | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pip | ||
key: cache-${{ secrets.CACHE_VERSION }}-${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
key: pip-${{ runner.os }} | ||
- name: Cache PlatformIO | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.platformio | ||
key: cache-${{ secrets.CACHE_VERSION }}-${{ runner.os }}-${{ hashFiles('**/lockfiles') }} | ||
key: platformio-${{ runner.os }} | ||
- name: Install swig | ||
run: sudo apt-get update && sudo apt-get -y install swig | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Install PlatformIO | ||
run: python -m pip install --upgrade pip && pip install --upgrade platformio | ||
- name: Rename config | ||
run: mv include/config.h.example include/config.h | ||
- name: Compile language ${{ matrix.language }} model ${{ matrix.model }} feature ${{ matrix.feature }} | ||
run: python3 .github/buildEverything.py -l ${{ matrix.language }} -m ${{ matrix.model }} -f ${{ matrix.feature }} | ||
run: python3 .github/buildEverything.py -l ${{ matrix.language }} -m ${{ matrix.model }} -f ${{ matrix.feature }} -b debug |
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,74 @@ | ||
name: Build OSW-OS (Ubuntu, Windows, Mac OS, all models) | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
Find-feature: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository and submodules | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- uses: dorny/[email protected] | ||
id: filter | ||
with: | ||
filters: | | ||
i8n: | ||
- 'include/locales/*.h' | ||
- id: get_lang | ||
run: | | ||
if [ ${{ steps.filter.outputs.i8n }} == "true" ]; then | ||
echo "get-languages=$(./.github/setMatrix.sh --get-languages)" >> $GITHUB_OUTPUT | ||
else | ||
echo "get-languages=$(./.github/setMatrix.sh --default-lang)" >> $GITHUB_OUTPUT | ||
fi | ||
- id: get_mod | ||
run: | | ||
echo "get-models=$(./.github/setMatrix.sh --get-models)" >> $GITHUB_OUTPUT | ||
outputs: | ||
get-models: ${{ steps.get_mod.outputs.get-models }} | ||
get-languages: ${{ steps.get_lang.outputs.get-languages }} | ||
build-OSW: | ||
needs: Find-feature | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
model: ${{ fromJson(needs.Find-feature.outputs.get-models) }} | ||
language: ${{ fromJson(needs.Find-feature.outputs.get-languages) }} | ||
steps: | ||
- name: Checkout repository and submodules | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Cache pip | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pip | ||
key: pip-${{ runner.os }} | ||
- name: Cache PlatformIO | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.platformio | ||
key: platformio-${{ runner.os }} | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install PlatformIO | ||
shell: bash | ||
run: | | ||
apt update && apt -y install swig | ||
python -m pip install --upgrade pip | ||
pip install --upgrade platformio | ||
mv include/config.h.example include/config.h | ||
- name: Compile language ${{ matrix.language }} model ${{ matrix.model }} | ||
run: python3 .github/buildEverything.py -l ${{ matrix.language }} -m ${{ matrix.model }} -b debug |
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 |
---|---|---|
@@ -1,23 +1,48 @@ | ||
name: OSW-OS-test | ||
name: Build OSW-OS (Ubuntu, all models) | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
paths_ignore: '["*.md", "**/scripts/screen_capture/**"]' | ||
pull_request: | ||
branches: [ master, develop ] | ||
|
||
jobs: | ||
Find-packages: | ||
check_skip: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
should_skip: ${{ steps.skip_check.outputs.should_skip }} | ||
steps: | ||
- id: skip_check | ||
uses: fkirc/[email protected] | ||
with: | ||
concurrent_skipping: 'same_content_newer' | ||
skip_after_successful_duplicate: 'true' | ||
|
||
Find-packages: | ||
runs-on: ubuntu-latest | ||
needs: check_skip | ||
if: ${{ needs.check_skip.outputs.should_skip != 'true' }} | ||
steps: | ||
- name: Checkout repository and submodules | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- uses: dorny/[email protected] | ||
id: filter | ||
with: | ||
filters: | | ||
i8n: | ||
- 'include/locales/*.h' | ||
- id: get-languages | ||
run: echo "::set-output name=languages_matrix::$(./.github/setMatrix.sh --get-languages)" | ||
run: | | ||
if [ "${{ steps.filter.outputs.i8n }}" == "true" -o "${{ github.head_ref == 'master' }}" == "true" -o "${{ github.base_ref == 'master' }}" == "true" ]; then | ||
echo "languages_matrix=$(./.github/setMatrix.sh --get-languages)" >> $GITHUB_OUTPUT | ||
else | ||
echo "languages_matrix=$(./.github/setMatrix.sh --default-lang)" >> $GITHUB_OUTPUT | ||
fi | ||
- id: get-models | ||
run: echo "::set-output name=models_matrix::$(./.github/setMatrix.sh --get-models)" | ||
run: echo "models_matrix=$(./.github/setMatrix.sh --get-models)" >> $GITHUB_OUTPUT | ||
outputs: | ||
languages_matrix: ${{ steps.get-languages.outputs.languages_matrix }} | ||
models_matrix: ${{ steps.get-models.outputs.models_matrix }} | ||
|
@@ -29,35 +54,36 @@ jobs: | |
matrix: | ||
language: ${{ fromJson(needs.Find-packages.outputs.languages_matrix) }} | ||
model: ${{ fromJson(needs.Find-packages.outputs.models_matrix) }} | ||
build-configuration: [debug, release] | ||
steps: | ||
- name: Checkout repository and submodules | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Cache pip | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pip | ||
key: cache-${{ secrets.CACHE_VERSION }}-${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
key: pip-${{ runner.os }} | ||
- name: Cache PlatformIO | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.platformio | ||
key: cache-${{ secrets.CACHE_VERSION }}-${{ runner.os }}-${{ hashFiles('**/lockfiles') }} | ||
key: platformio-${{ runner.os }} | ||
- name: Install swig | ||
run: sudo apt-get update && sudo apt-get -y install swig | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Install PlatformIO | ||
run: python -m pip install --upgrade pip && pip install --upgrade platformio | ||
- name: Rename config | ||
run: mv include/config.h.example include/config.h | ||
- name: Compile language ${{ matrix.language }} model ${{ matrix.model }} | ||
run: python3 .github/buildEverything.py -l ${{ matrix.language }} -m ${{ matrix.model }} | ||
run: python3 .github/buildEverything.py -l ${{ matrix.language }} -m ${{ matrix.model }} -b ${{ matrix.build-configuration }} | ||
- name: Upload firmware artifacts | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: firmwares | ||
path: | | ||
|
Oops, something went wrong.