Skip to content

Commit

Permalink
Add ccache, fix build dir for anope
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdaemon committed Feb 27, 2024
1 parent 2b5a7c2 commit 0519df3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- main

jobs:
build:
build-inspircd:
strategy:
matrix:
version:
Expand All @@ -21,6 +21,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
create-symlink: true
key: "${{github.job}}-${{matrix.os}}-${{matrix.version}}"

- name: Update apt index
run: sudo apt update -y -qq
- name: Install dependency packages
Expand Down Expand Up @@ -63,6 +70,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
create-symlink: true
key: "${{github.job}}-${{matrix.os}}-${{matrix.version}}"

- name: Update apt index
run: sudo apt update -y -qq
- name: Install dependency packages
Expand Down Expand Up @@ -106,7 +120,7 @@ jobs:
if-no-files-found: error

release:
needs: [build, build-anope]
needs: [build-inspircd, build-anope]
runs-on: ubuntu-latest
steps:
- name: Get current date
Expand Down
1 change: 1 addition & 0 deletions anope-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ install() {
install_extras
cat << EOF > config.cache
UMASK=022
INSTDIR="$PWD/services"
EOF

export CXXFLAGS="-std=c++11"
Expand Down

0 comments on commit 0519df3

Please sign in to comment.