|
|
|
|
@ -18,15 +18,24 @@ jobs:
|
|
|
|
|
sudo apt-get update -y
|
|
|
|
|
sudo apt-get install -y sysbench gettext
|
|
|
|
|
|
|
|
|
|
- name: Checkout proxysql
|
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
# - name: Checkout proxysql
|
|
|
|
|
# uses: actions/checkout@v3
|
|
|
|
|
# with:
|
|
|
|
|
# repository: 'sysown/proxysql'
|
|
|
|
|
## ref: 'v2.x'
|
|
|
|
|
# ref: ${{ github.head_ref }}
|
|
|
|
|
# fetch-depth: 0
|
|
|
|
|
# path: 'proxysql'
|
|
|
|
|
|
|
|
|
|
- name: Cache restore src
|
|
|
|
|
id: cache-src
|
|
|
|
|
uses: actions/cache/restore@v3
|
|
|
|
|
with:
|
|
|
|
|
repository: 'sysown/proxysql'
|
|
|
|
|
# ref: 'v2.x'
|
|
|
|
|
ref: ${{ github.head_ref }}
|
|
|
|
|
fetch-depth: 0
|
|
|
|
|
path: 'proxysql'
|
|
|
|
|
|
|
|
|
|
key: CI-builds_${{ github.sha }}_ubuntu22-tap_src
|
|
|
|
|
fail-on-cache-miss: true
|
|
|
|
|
path: |
|
|
|
|
|
proxysql/src/
|
|
|
|
|
|
|
|
|
|
- name: Checkout jenkins_build_scripts
|
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
with:
|
|
|
|
|
@ -36,16 +45,16 @@ jobs:
|
|
|
|
|
path: 'jenkins-build-scripts'
|
|
|
|
|
token: ${{ secrets.GH_TOKEN }}
|
|
|
|
|
|
|
|
|
|
- name: Set GIT_VERSION
|
|
|
|
|
run: |
|
|
|
|
|
cd proxysql/
|
|
|
|
|
git fetch --tags --force
|
|
|
|
|
echo "GIT_VERSION=$(git describe --long --abbrev=7)" >> $GITHUB_ENV
|
|
|
|
|
# - name: Set GIT_VERSION
|
|
|
|
|
# run: |
|
|
|
|
|
# cd proxysql/
|
|
|
|
|
# git fetch --tags --force
|
|
|
|
|
# echo "GIT_VERSION=$(git describe --long --abbrev=7)" >> $GITHUB_ENV
|
|
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
|
run: |
|
|
|
|
|
cd proxysql/
|
|
|
|
|
make ubuntu22-dbg
|
|
|
|
|
# - name: Build
|
|
|
|
|
# run: |
|
|
|
|
|
# cd proxysql/
|
|
|
|
|
# make ubuntu22-dbg
|
|
|
|
|
|
|
|
|
|
- name: Docker-hoster
|
|
|
|
|
run: |
|
|
|
|
|
|