Skip to content

Commit

Permalink
Merge pull request #2 from jkim-mi/jkim-update
Browse files Browse the repository at this point in the history
update cachehits to support newer varnish versions
  • Loading branch information
jkim-mi authored Aug 21, 2024
2 parents ba74f58 + b7e05e2 commit f66c637
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 112 deletions.
55 changes: 0 additions & 55 deletions .circleci/config.yml

This file was deleted.

100 changes: 51 additions & 49 deletions .github/workflows/build-deb.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,34 @@
name: build-deb
# Controls when the action will run.
# Controls when the action will run.
on:
push:
tags:
- 'v*'
- "v*"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
release:
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
outputs:
upload_url: ${{steps.create_release.outputs.upload_url}}
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true
prerelease: true
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true
prerelease: true
build:
needs: release
strategy:
fail-fast: false
matrix:
os:
- "ubuntu-22.04"
- "ubuntu-20.04"
- "ubuntu-18.04"
vrt:
Expand All @@ -36,39 +37,40 @@ jobs:
- 71
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: install build depends
run: |
sudo apt-get install python3-docutils python3-sphinx build-essential devscripts debhelper python-docutils dh-autoreconf pkg-config autogen automake autotools-dev autoconf libtool
- name: install varnish
run: |
cd $GITHUB_WORKSPACE
./sw_vrt.sh ${{ matrix.vrt }}
cd debian.vrt
./pkg.sh
./bf_build_${{ matrix.vrt }}.sh
- name: build vmod
run: |
cd $GITHUB_WORKSPACE
rm -f ../*.deb
debuild -us -uc -b
ls ../
- name: Get filename
id: filename
run: find ${GITHUB_WORKSPACE}/../ -maxdepth 1 -name *.deb -type f -printf "::set-output name=deb::%f\n"
- name: Test pkg
run: |
cd ${GITHUB_WORKSPACE}/../
sudo dpkg -i ${{ steps.filename.outputs.deb }}
cd ${GITHUB_WORKSPACE}/debian.vrt
varnishtest test.vtc
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: ../${{ steps.filename.outputs.deb }}
asset_name: ${{ steps.filename.outputs.deb }}
asset_content_type: application/vnd.debian.binary-package
- uses: actions/checkout@v4
- name: install build depends
run: |
sudo apt-get update
sudo apt-get install python3-docutils python3-sphinx build-essential devscripts debhelper python-docutils dh-autoreconf pkg-config autogen automake autotools-dev autoconf libtool
- name: install varnish
run: |
cd $GITHUB_WORKSPACE
./sw_vrt.sh ${{ matrix.vrt }}
cd debian.vrt
./pkg.sh
./bf_build_${{ matrix.vrt }}.sh
- name: build vmod
run: |
cd $GITHUB_WORKSPACE
rm -f ../*.deb
debuild -us -uc -b
ls ../
- name: Get filename
id: filename
run: find ${GITHUB_WORKSPACE}/../ -maxdepth 1 -name *.deb -type f -printf "::set-output name=deb::%f\n"
- name: Test pkg
run: |
cd ${GITHUB_WORKSPACE}/../
sudo dpkg -i ${{ steps.filename.outputs.deb }}
cd ${GITHUB_WORKSPACE}/debian.vrt
varnishtest test.vtc
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: ../${{ steps.filename.outputs.deb }}
asset_name: ${{ steps.filename.outputs.deb }}
asset_content_type: application/vnd.debian.binary-package
15 changes: 7 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,19 @@ jobs:
matrix:
varnish:
- "https://github.com/varnishcache/varnish-cache/archive/master.tar.gz" #VRT=14.0
- "https://varnish-cache.org/_downloads/varnish-7.5.0.tgz" #VRT=14.0
- "https://varnish-cache.org/_downloads/varnish-7.4.3.tgz" #VRT=14.0
- "https://varnish-cache.org/_downloads/varnish-7.0.0.tgz" #VRT=14.0
- "https://varnish-cache.org/_downloads/varnish-6.6.1.tgz" #VRT=13.0
- "https://varnish-cache.org/_downloads/varnish-6.5.2.tgz" #VRT=12.0
- "https://varnish-cache.org/_downloads/varnish-6.4.0.tgz" #VRT=11.0
- "https://varnish-cache.org/_downloads/varnish-6.3.2.tgz" #VRT=10.0
- "https://varnish-cache.org/_downloads/varnish-6.2.3.tgz" #VRT=9.0
- "https://varnish-cache.org/_downloads/varnish-6.0.10.tgz" #VRT=7.1
- "https://varnish-cache.org/_downloads/varnish-6.0.13.tgz"
include:
- varnish: "https://github.com/varnishcache/varnish-cache/archive/master.tar.gz"
allow_failures: "true"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: install build depends
run: sudo apt-get install python3-docutils python3-sphinx
run: |
sudo apt-get update
sudo apt-get install python3-docutils python3-sphinx
- name: build varnish
run: |
wget ${{ matrix.varnish }}
Expand Down

0 comments on commit f66c637

Please sign in to comment.