From 9c5c309e8aa4ab4479033e8c5ebbfc144a348dac Mon Sep 17 00:00:00 2001 From: kbz_8 Date: Sat, 20 Jan 2024 13:23:00 +0100 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..c9445b7 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,37 @@ +name: Build + +on: + pull_request: + push: + paths-ignore: + - '.gitignore' + - 'README.md' + +jobs: + build: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + arch: [x86_64] + mode: [release] + + runs-on: ${{ matrix.os }} + if: "!contains(github.event.head_commit.message, 'ci skip')" + + steps: + - name: Get current date as package key + id: cache_key + run: echo "key=$(date +'%W')" >> $GITHUB_OUTPUT + + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install system dependencies + run: | + sudo apt-get update + sudo apt-get -y install clang build-essential + + # Build the serv + - name: Build IRC + run: make -j && make fclean && make -j DEBUG=true