From f8b509aeeadb48b498a30f2701d88180927dde50 Mon Sep 17 00:00:00 2001 From: Fred Date: Sun, 3 Jan 2021 09:52:42 +0100 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..a98ea084 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,31 @@ +name: CI +on: + push: + branches: [ master ] +jobs: + build: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: apt-install + run: | + sudo apt update + sudo apt install meson gcc pkg-config libsdl2-dev gcc-arm-none-eabi + - name: meson-setup + run: | + cd ${{github.workspace}} + meson setup build_linux + meson setup --cross-file cross_arm.txt build_arm + - name: ninja + run: | + cd ${{github.workspace}} + ninja -C build_linux openrtx_linux -j4 + ninja -C build_arm openrtx_md380_wrap -j4 + ninja -C build_arm openrtx_md390_wrap -j4 + ninja -C build_arm openrtx_mduv380_wrap -j4 + - uses: actions/upload-artifact@v2 + with: + name: release-bins + path: | + ${{github.workspace}}/build_arm/openrtx_*_wrap + ${{github.workspace}}/build_linux/openrtx_linux