From ec31a8f3d4df00269b6ef59ddd0677405f6168ac Mon Sep 17 00:00:00 2001 From: Quentin Boswank Date: Sun, 11 May 2025 21:00:08 +0200 Subject: [PATCH 1/3] Add CI --- .github/workflows/c-cpp.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/c-cpp.yml diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml new file mode 100644 index 0000000..bc291dd --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -0,0 +1,27 @@ +name: C/C++ CI + +on: + push: + branches: [ "main" ] + # Publish semver tags as releases. + tags: [ 'v*.*.*' ] + pull_request: + branches: [ "main" ] + workflow_dispatch: + +jobs: + build-artifact: + runs-on: ubuntu-latest + container: + image: ghcr.io/classpaddev/hollyhock-3:v2.0.1 + credentials: + username: ${{ github.actor }} + password: ${{ secrets.github_token }} + + steps: + - run: apt-get update -y && apt-get upgrade -y && apt-get install -y --no-install-recommencds python3 python-is-python3 && apt-get install -y --reinstall ca-certificates + - uses: actions/checkout@v4 + - run: make -j + - uses: actions/upload-artifact@v4 + with: + path: dist/** From b1ca72d49e81e4ab49086929aa5ddf1acc0bf67f Mon Sep 17 00:00:00 2001 From: Quentin Boswank Date: Sun, 11 May 2025 21:01:09 +0200 Subject: [PATCH 2/3] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index bc291dd..922dc9f 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -19,7 +19,7 @@ jobs: password: ${{ secrets.github_token }} steps: - - run: apt-get update -y && apt-get upgrade -y && apt-get install -y --no-install-recommencds python3 python-is-python3 && apt-get install -y --reinstall ca-certificates + - run: apt-get update -y && apt-get upgrade -y && apt-get install -y --no-install-recommends python3 python-is-python3 && apt-get install -y --reinstall ca-certificates - uses: actions/checkout@v4 - run: make -j - uses: actions/upload-artifact@v4 From d11619dd9eeeea00bff060af546f814124772e50 Mon Sep 17 00:00:00 2001 From: Quentin Boswank Date: Sun, 11 May 2025 21:02:58 +0200 Subject: [PATCH 3/3] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 922dc9f..6cb34d2 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -21,6 +21,8 @@ jobs: steps: - run: apt-get update -y && apt-get upgrade -y && apt-get install -y --no-install-recommends python3 python-is-python3 && apt-get install -y --reinstall ca-certificates - uses: actions/checkout@v4 + with: + submodules: true - run: make -j - uses: actions/upload-artifact@v4 with: