From f7cd53bdc43c800b0e27dc120e6ba36a7cc02960 Mon Sep 17 00:00:00 2001 From: Hayley Hughes Date: Wed, 18 Sep 2024 22:28:21 +1000 Subject: [PATCH] Add github actions --- .github/workflows/github-actions.yml | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/github-actions.yml diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml new file mode 100644 index 0000000..1dc8ed0 --- /dev/null +++ b/.github/workflows/github-actions.yml @@ -0,0 +1,39 @@ +on: [push] + +jobs: + build_matrix: + runs-on: ubuntu-latest + strategy: + matrix: + arch: ["rpi", "linux"] + steps: + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: 3.12 + + - name: Install splashkit + run: curl -s https://raw.githubusercontent.com/splashkit/skm/master/install-scripts/skm-install.sh | bash + run: skm linux install + run: skm global install + + - name: Checkout splashkit + uses: actions/checkout@v4 + with: + path: splashkit + + - name: Clone flipper repo + uses: actions/checkout@v4 + with: + path: flipper + + - name: Install g++ arm + run: sudo apt -y install gcc-arm-linux-gnueabihf + + - name: Install dotnet + run: sudo apt -y install dotnet-host + + - name: Run flipper + run: mkdir -p build + run: cd build + run: python flipper/flipper.py --path flipper ${{ matrix.arch == 'rpi' && '--cs-runtime linux-arm --cpp-prefix arm-linux-gnueabihf-' }}