-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into anti-aliasing
- Loading branch information
Showing
27 changed files
with
659 additions
and
279 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 |
---|---|---|
|
@@ -2,9 +2,9 @@ name: Build OSW Emulator (Ubuntu) | |
|
||
on: | ||
push: | ||
paths_ignore: '["**/*.md", "**/scripts/screen_capture/**"]' | ||
paths-ignore: ["**/*.md", "**/scripts/screen_capture/**"] | ||
pull_request: | ||
branches: [ master, develop ] | ||
branches: [master, develop] | ||
|
||
jobs: | ||
check_skip: | ||
|
@@ -15,8 +15,8 @@ jobs: | |
- id: skip_check | ||
uses: fkirc/[email protected] | ||
with: | ||
concurrent_skipping: 'same_content_newer' | ||
skip_after_successful_duplicate: 'true' | ||
concurrent_skipping: "same_content_newer" | ||
skip_after_successful_duplicate: "true" | ||
|
||
build-EMULATOR: | ||
runs-on: ubuntu-22.04 | ||
|
@@ -25,24 +25,36 @@ jobs: | |
strategy: | ||
matrix: | ||
build-configuration: [Debug, Release] | ||
steps: | ||
- name: Checkout repository and submodules | ||
# uses: actions/checkout@v3 # incompatible with git lfs cache bandwidth calcs (https://github.com/actions/checkout/issues/165) | ||
uses: nschloe/[email protected] | ||
with: | ||
submodules: recursive | ||
lfs: 'true' | ||
- name: Update packages | ||
run: sudo apt-get update | ||
- name: Install packages | ||
run: sudo apt-get -y install gcc g++ cmake libsdl2-dev libsdl2-image-dev python3 python3-pip | ||
- name: Install python packages | ||
run: pip3 install --user -r scripts/requirements.txt | ||
- 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 | ||
steps: | ||
# the following is incompatible with git lfs cache bandwidth calculations (https://github.com/actions/checkout/issues/165) | ||
# -> we removed the following and replaced it with a cache-aware checkout | ||
# - name: Checkout repository and submodules | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# submodules: recursive | ||
# lfs: 'true' | ||
- name: Checkout repository and submodules | ||
uses: nschloe/[email protected] | ||
with: | ||
submodules: recursive | ||
- name: Update packages | ||
run: sudo apt-get update | ||
- name: Install packages | ||
run: sudo apt-get -y install gcc g++ cmake libsdl2-dev libsdl2-image-dev python3 python3-pip | ||
- name: Install python packages | ||
run: pip3 install --user -r scripts/requirements.txt | ||
- 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 | ||
- name: Upload test artifacts | ||
if: failure() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: test-results | ||
path: | | ||
build/Testing |
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 |
---|---|---|
|
@@ -2,9 +2,9 @@ name: Build OSW-OS (Ubuntu, additional features) | |
|
||
on: | ||
push: | ||
paths_ignore: '["*.md", "**/scripts/screen_capture/**"]' | ||
paths-ignore: ["*.md", "**/scripts/screen_capture/**"] | ||
pull_request: | ||
branches: [ master, develop ] | ||
branches: [master, develop] | ||
|
||
jobs: | ||
check_skip: | ||
|
@@ -15,20 +15,18 @@ jobs: | |
- id: skip_check | ||
uses: fkirc/[email protected] | ||
with: | ||
concurrent_skipping: 'same_content_newer' | ||
skip_after_successful_duplicate: 'true' | ||
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: | ||
steps: | ||
- name: Checkout repository and submodules | ||
# uses: actions/checkout@v3 # incompatible with git lfs cache bandwidth calcs (https://github.com/actions/checkout/issues/165) | ||
uses: nschloe/[email protected] | ||
with: | ||
submodules: recursive | ||
lfs: 'true' | ||
- id: get-flag | ||
run: | | ||
echo "feature=$(python3 .github/getWorkflowMatrix.py all_flags)" >> $GITHUB_OUTPUT | ||
|
@@ -52,31 +50,29 @@ jobs: | |
model: ${{ fromJson(needs.Find-feature.outputs.default_model) }} | ||
language: ${{ fromJson(needs.Find-feature.outputs.default_language) }} | ||
steps: | ||
- name: Checkout repository and submodules | ||
# uses: actions/checkout@v3 # incompatible with git lfs cache bandwidth calcs (https://github.com/actions/checkout/issues/165) | ||
uses: nschloe/[email protected] | ||
with: | ||
submodules: recursive | ||
lfs: 'true' | ||
- 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: Install swig | ||
run: sudo apt-get update && sudo apt-get -y install swig | ||
- name: Set up Python | ||
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/buildFirmware.py -l "${{ matrix.language }}" -m "${{ matrix.model }}" -f "${{ matrix.feature }}" -b debug | ||
- name: Checkout repository and submodules | ||
uses: nschloe/[email protected] | ||
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: Install swig | ||
run: sudo apt-get update && sudo apt-get -y install swig | ||
- name: Set up Python | ||
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/buildFirmware.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 |
---|---|---|
|
@@ -4,18 +4,16 @@ on: | |
workflow_dispatch: | ||
pull_request: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
Find-feature: | ||
runs-on: ubuntu-latest | ||
steps: | ||
steps: | ||
- name: Checkout repository and submodules | ||
# uses: actions/checkout@v3 # incompatible with git lfs cache bandwidth calcs (https://github.com/actions/checkout/issues/165) | ||
uses: nschloe/[email protected] | ||
with: | ||
submodules: recursive | ||
lfs: 'true' | ||
- uses: dorny/[email protected] | ||
id: filter | ||
with: | ||
|
@@ -45,34 +43,32 @@ jobs: | |
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 # incompatible with git lfs cache bandwidth calcs (https://github.com/actions/checkout/issues/165) | ||
uses: nschloe/[email protected] | ||
with: | ||
submodules: recursive | ||
lfs: 'true' | ||
- 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: Checkout repository and submodules | ||
uses: nschloe/[email protected] | ||
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: 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/buildFirmware.py -l "${{ matrix.language }}" -m "${{ matrix.model }}" -b debug | ||
- name: Compile language ${{ matrix.language }} model ${{ matrix.model }} | ||
run: python3 .github/buildFirmware.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 |
---|---|---|
|
@@ -3,9 +3,9 @@ name: Build OSW-OS (Ubuntu, all models) | |
on: | ||
workflow_dispatch: | ||
push: | ||
paths_ignore: '["*.md", "**/scripts/screen_capture/**"]' | ||
paths-ignore: ["*.md", "**/scripts/screen_capture/**"] | ||
pull_request: | ||
branches: [ master, develop ] | ||
branches: [master, develop] | ||
|
||
jobs: | ||
check_skip: | ||
|
@@ -16,20 +16,18 @@ jobs: | |
- id: skip_check | ||
uses: fkirc/[email protected] | ||
with: | ||
concurrent_skipping: 'same_content_newer' | ||
skip_after_successful_duplicate: 'true' | ||
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: | ||
steps: | ||
- name: Checkout repository and submodules | ||
# uses: actions/checkout@v3 # incompatible with git lfs cache bandwidth calcs (https://github.com/actions/checkout/issues/165) | ||
uses: nschloe/[email protected] | ||
with: | ||
submodules: recursive | ||
lfs: 'true' | ||
- uses: dorny/[email protected] | ||
id: filter | ||
with: | ||
|
@@ -58,37 +56,35 @@ jobs: | |
model: ${{ fromJson(needs.Find-packages.outputs.models_matrix) }} | ||
build-configuration: [debug, release] | ||
steps: | ||
- name: Checkout repository and submodules | ||
# uses: actions/checkout@v3 # incompatible with git lfs cache bandwidth calcs (https://github.com/actions/checkout/issues/165) | ||
uses: nschloe/[email protected] | ||
with: | ||
submodules: recursive | ||
lfs: 'true' | ||
- 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: Install swig | ||
run: sudo apt-get update && sudo apt-get -y install swig | ||
- name: Set up Python | ||
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/buildFirmware.py -l "${{ matrix.language }}" -m "${{ matrix.model }}" -b "${{ matrix.build-configuration }}" | ||
- name: Upload firmware artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: firmwares | ||
path: | | ||
*.bin | ||
- name: Checkout repository and submodules | ||
uses: nschloe/[email protected] | ||
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: Install swig | ||
run: sudo apt-get update && sudo apt-get -y install swig | ||
- name: Set up Python | ||
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/buildFirmware.py -l "${{ matrix.language }}" -m "${{ matrix.model }}" -b "${{ matrix.build-configuration }}" | ||
- name: Upload firmware artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: firmwares | ||
path: | | ||
*.bin |
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
Oops, something went wrong.