Add to the CI run archiving of the files needed to execute #27
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
name: brickEmu CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest ] | |
python-version: [3.12] | |
steps: | |
- name: Checkout BrickEmu | |
uses: actions/checkout@v4 | |
with: | |
path: main | |
- name: apt-get update | |
run: sudo apt-get --assume-yes update | |
- name: install build dependencies | |
run: sudo apt-get --assume-yes install binutils-h8300-hms gcc-h8300-hms zlib1g-dev libsdl-sound1.2-dev | |
- name: make_brick_emu | |
run: | | |
cd main | |
make | |
- name: Checkout BrickOs-bibo | |
uses: actions/checkout@v4 | |
with: | |
repository: BrickBot/brickOS-bibo | |
path: brickos_bibo | |
- name: make_brickos_bibo | |
run: | | |
cd brickos_bibo | |
make | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 pytest | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Lint with flake8 | |
run: | | |
cd main | |
# stop the build if there are Python syntax errors or undefined names | |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | |
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
- name: Test with pytest | |
run: | | |
cd main | |
python -m pytest ./tests | |
- name: Archive the files needed to execute | |
uses: actions/upload-artifact@v4 | |
with: | |
name: brickEmu_[runner~${{ matrix.os }}]_run${{ github.run_id }}.${{ github.run_number }}.${{ github.run_attempt }} | |
path: | | |
GUI.tcl | |
emu | |
emu_server.py | |
ir-server | |
remote | |
rom.bin | |
rom.coff |