Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nanopb/nanopb.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2022-02-18 17:45:28 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2022-02-27 18:13:46 +0300
commit49c6a148fe381bf985e8738b6116fbcec996f758 (patch)
tree484330e3c3a55f40e95e847952c4a9e7ec2e0e97 /.github
parent45770f308b6c78ec89b640136e928932d86fe178 (diff)
Add workflow file for simulator tests
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/simulator_tests.yml89
1 files changed, 89 insertions, 0 deletions
diff --git a/.github/workflows/simulator_tests.yml b/.github/workflows/simulator_tests.yml
new file mode 100644
index 0000000..5497139
--- /dev/null
+++ b/.github/workflows/simulator_tests.yml
@@ -0,0 +1,89 @@
+name: Run tests in simulator
+
+on:
+ workflow_dispatch:
+ push:
+
+jobs:
+ test_avr:
+ name: Test in simavr for ATMega1284
+ runs-on: ubuntu-20.04
+
+ steps:
+ - name: Check out code from GitHub
+ uses: actions/checkout@v2
+ with:
+ path: nanopb
+ fetch-depth: "0"
+
+ - name: Install dependencies
+ run: |
+ sudo apt-get update
+ sudo apt-get install python3-protobuf protobuf-compiler scons
+ sudo apt-get install libelf-dev gcc-avr gdb-avr avr-libc
+
+ - name: Install simavr
+ run: |
+ git clone https://github.com/buserror/simavr.git
+ cd simavr
+ make build-simavr
+ sudo make install-simavr
+ sudo ldconfig
+
+ - name: Run tests in AVR simulator
+ run: |
+ cd nanopb/tests
+ scons PLATFORM=AVR
+
+ test_mips:
+ name: Test in qemu for MIPS
+ runs-on: ubuntu-20.04
+
+ steps:
+ - name: Check out code from GitHub
+ uses: actions/checkout@v2
+ with:
+ path: nanopb
+ fetch-depth: "0"
+
+ - name: Install dependencies
+ run: |
+ sudo apt-get update
+ sudo apt-get install python3-protobuf protobuf-compiler scons
+ sudo apt-get install gcc-mipsel-linux-gnu g++-mipsel-linux-gnu gcc-mips-linux-gnu g++-mips-linux-gnu qemu-user
+
+ - name: Run tests for big-endian MIPS
+ run: |
+ cd nanopb/tests
+ rm -rf build
+ scons PLATFORM=MIPS
+
+ - name: Run tests for little-endian MIPS
+ run: |
+ cd nanopb/tests
+ rm -rf build
+ scons PLATFORM=MIPSEL
+
+ test_riscv:
+ name: Test in qemu for RISCV64
+ runs-on: ubuntu-20.04
+
+ steps:
+ - name: Check out code from GitHub
+ uses: actions/checkout@v2
+ with:
+ path: nanopb
+ fetch-depth: "0"
+
+ - name: Install dependencies
+ run: |
+ sudo apt-get update
+ sudo apt-get install python3-protobuf protobuf-compiler scons
+ sudo apt-get install gcc-riscv64-linux-gnu g++-riscv64-linux-gnu qemu-user
+
+ - name: Run tests for RISCV64
+ run: |
+ cd nanopb/tests
+ rm -rf build
+ scons PLATFORM=RISCV64
+