From 0b156acb61737171ecae2e6942bfdff67965ca9a Mon Sep 17 00:00:00 2001 From: Omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 25 Feb 2024 13:01:26 +1100 Subject: add a github action workflow --- .github/workflows/continuous-workflow.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/continuous-workflow.yml (limited to '.github/workflows/continuous-workflow.yml') diff --git a/.github/workflows/continuous-workflow.yml b/.github/workflows/continuous-workflow.yml new file mode 100644 index 0000000..f324f27 --- /dev/null +++ b/.github/workflows/continuous-workflow.yml @@ -0,0 +1,24 @@ +name: GitHub Actions Demo +run-name: ${{ github.actor }} pushed a new commit +on: [push] +jobs: + Compile-and-Test: + runs-on: ubuntu-latest + steps: + - name: Install system dependencies, xmake, etc + run: | + sudo add-apt-repository ppa:xmake-io/xmake + sudo apt update + sudo apt install -y xmake + sudo apt install -y clang-format + - name: Check out repository code + uses: actions/checkout@v4 + - name: List files in the repository + run: | + ls ${{ github.workspace }} + - name: Check formatting + run: find src/ -iname *.h -o -iname *.c | xargs clang-format --style=file --dry-run --Werror + - name: Compile C code + run: xmake build + # - name: Run tests + # run: xmake run -g tests -- cgit v1.2.3-70-g09d2 From 4d6a1ccac304d58384f69f00b9e3b2fe6d889286 Mon Sep 17 00:00:00 2001 From: Omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 25 Feb 2024 13:06:22 +1100 Subject: add -y for xmake --- .github/workflows/continuous-workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows/continuous-workflow.yml') diff --git a/.github/workflows/continuous-workflow.yml b/.github/workflows/continuous-workflow.yml index f324f27..34cdff1 100644 --- a/.github/workflows/continuous-workflow.yml +++ b/.github/workflows/continuous-workflow.yml @@ -19,6 +19,6 @@ jobs: - name: Check formatting run: find src/ -iname *.h -o -iname *.c | xargs clang-format --style=file --dry-run --Werror - name: Compile C code - run: xmake build + run: xmake build -y # - name: Run tests # run: xmake run -g tests -- cgit v1.2.3-70-g09d2 From 78dddf6cb80f22e2f274ad1893ec1bd2cb5d2850 Mon Sep 17 00:00:00 2001 From: Omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 25 Feb 2024 13:17:35 +1100 Subject: add libxrandr to pipeline --- .github/workflows/continuous-workflow.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to '.github/workflows/continuous-workflow.yml') diff --git a/.github/workflows/continuous-workflow.yml b/.github/workflows/continuous-workflow.yml index 34cdff1..43db679 100644 --- a/.github/workflows/continuous-workflow.yml +++ b/.github/workflows/continuous-workflow.yml @@ -9,8 +9,7 @@ jobs: run: | sudo add-apt-repository ppa:xmake-io/xmake sudo apt update - sudo apt install -y xmake - sudo apt install -y clang-format + sudo apt install -y xmake libxrandr-dev clang-format - name: Check out repository code uses: actions/checkout@v4 - name: List files in the repository -- cgit v1.2.3-70-g09d2 From 2a6bdb570d1c32a7d720d8e259e90cba78b25cfe Mon Sep 17 00:00:00 2001 From: Omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 25 Feb 2024 13:20:18 +1100 Subject: add libxinerama --- .github/workflows/continuous-workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows/continuous-workflow.yml') diff --git a/.github/workflows/continuous-workflow.yml b/.github/workflows/continuous-workflow.yml index 43db679..6d75f5a 100644 --- a/.github/workflows/continuous-workflow.yml +++ b/.github/workflows/continuous-workflow.yml @@ -9,7 +9,7 @@ jobs: run: | sudo add-apt-repository ppa:xmake-io/xmake sudo apt update - sudo apt install -y xmake libxrandr-dev clang-format + sudo apt install -y xmake libxrandr-dev libxinerama-dev clang-format - name: Check out repository code uses: actions/checkout@v4 - name: List files in the repository -- cgit v1.2.3-70-g09d2 From 096cd5ad3e921a4488b6484365de973942b5231b Mon Sep 17 00:00:00 2001 From: Omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 25 Feb 2024 13:21:40 +1100 Subject: use meta packages to get all the X headers we need --- .github/workflows/continuous-workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows/continuous-workflow.yml') diff --git a/.github/workflows/continuous-workflow.yml b/.github/workflows/continuous-workflow.yml index 6d75f5a..891270b 100644 --- a/.github/workflows/continuous-workflow.yml +++ b/.github/workflows/continuous-workflow.yml @@ -9,7 +9,7 @@ jobs: run: | sudo add-apt-repository ppa:xmake-io/xmake sudo apt update - sudo apt install -y xmake libxrandr-dev libxinerama-dev clang-format + sudo apt install -y xmake xorg-dev libglu1-mesa-dev clang-format - name: Check out repository code uses: actions/checkout@v4 - name: List files in the repository -- cgit v1.2.3-70-g09d2