From 3585bf5b44a34d9628b36f9c91034a57fe475221 Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Mon, 11 Sep 2023 15:39:03 +0300 Subject: [PATCH 1/4] Create tests.yml --- .github/workflows/tests.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..5acc0fbe --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,34 @@ +name: Build & Run Tests +# Thanks to the people working on GM9 and DKP + +on: + push: + branches: + - master + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + container: devkitpro/devkitarm + + steps: + - uses: actions/checkout@v1 + + - name: Fix apt sources + run: | + apt-get update + apt-get -y install dirmngr + echo 'deb http://us.archive.ubuntu.com/ubuntu/ bionic main' >> /etc/apt/sources.list + apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 + apt-get update + + - name: Install and update packages + run: | + apt-get -y install python3 python3-pip p7zip-full libarchive13 + python3 --version + python3 -m pip install --upgrade pip setuptools + + - name: Compile Tests + run: | + make -C tests/SimplerTri From c5548e1858e34d83e0af0ac53399ce3b875a1650 Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Mon, 11 Sep 2023 15:43:27 +0300 Subject: [PATCH 2/4] Update tests.yml --- .github/workflows/tests.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5acc0fbe..44b5e700 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -32,3 +32,6 @@ jobs: - name: Compile Tests run: | make -C tests/SimplerTri + make -C tests/ImmediateModeTriangles + make -C tests/HelloWorldSVC + make -C tests/DetectEmulator From 2d3a2f9b8321e958f265ed21af0698ed449f01c2 Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Mon, 11 Sep 2023 17:59:18 +0300 Subject: [PATCH 3/4] Update tests.yml --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 44b5e700..a563e6fb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -29,7 +29,7 @@ jobs: python3 --version python3 -m pip install --upgrade pip setuptools - - name: Compile Tests + - name: Compile tests run: | make -C tests/SimplerTri make -C tests/ImmediateModeTriangles From 122d7a3ef6bf1aad84cba1ba83486732e9a5a23d Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Mon, 30 Oct 2023 03:20:27 +0200 Subject: [PATCH 4/4] Bump checkout action version --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a563e6fb..e43b4264 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,7 +13,7 @@ jobs: container: devkitpro/devkitarm steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Fix apt sources run: |