mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-23 03:52:35 -04:00
Merge pull request #618 from kiwix/fix_clone_ci
This commit is contained in:
commit
840f92c677
19
.github/workflows/ci.yml
vendored
19
.github/workflows/ci.yml
vendored
@ -36,22 +36,12 @@ jobs:
|
|||||||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
|
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
|
||||||
id: extract_branch
|
id: extract_branch
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
shell: python
|
uses: actions/checkout@v3
|
||||||
run: |
|
|
||||||
from subprocess import check_call
|
|
||||||
from os import environ
|
|
||||||
command = [
|
|
||||||
'git', 'clone',
|
|
||||||
'https://github.com/${{github.repository}}',
|
|
||||||
'--depth=1',
|
|
||||||
'--branch', '${{steps.extract_branch.outputs.branch}}'
|
|
||||||
]
|
|
||||||
check_call(command, cwd=environ['HOME'])
|
|
||||||
- name: Install deps
|
- name: Install deps
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
ARCHIVE_NAME=deps2_${OS_NAME}_${{matrix.target}}_kiwix-tools.tar.xz
|
ARCHIVE_NAME=deps2_${OS_NAME}_${{matrix.target}}_kiwix-tools.tar.xz
|
||||||
wget -O- http://tmp.kiwix.org/ci/${ARCHIVE_NAME} | tar -xJ -C /home/runner
|
wget -O- http://tmp.kiwix.org/ci/${ARCHIVE_NAME} | tar -xJ -C ${{env.HOME}}
|
||||||
- name: Compile
|
- name: Compile
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@ -63,10 +53,9 @@ jobs:
|
|||||||
if [[ ! "${{matrix.target}}" =~ native_.* ]]; then
|
if [[ ! "${{matrix.target}}" =~ native_.* ]]; then
|
||||||
MESON_OPTION="$MESON_OPTION --cross-file $HOME/BUILD_${{matrix.target}}/meson_cross_file.txt"
|
MESON_OPTION="$MESON_OPTION --cross-file $HOME/BUILD_${{matrix.target}}/meson_cross_file.txt"
|
||||||
fi
|
fi
|
||||||
cd $HOME/kiwix-tools
|
|
||||||
meson . build ${MESON_OPTION}
|
meson . build ${MESON_OPTION}
|
||||||
cd build
|
cd build
|
||||||
ninja
|
ninja
|
||||||
env:
|
env:
|
||||||
PKG_CONFIG_PATH: "/home/runner/BUILD_${{matrix.target}}/INSTALL/lib/pkgconfig:/home/runner/BUILD_${{matrix.target}}/INSTALL/lib${{matrix.lib_postfix}}/pkgconfig"
|
PKG_CONFIG_PATH: "${{env.HOME}}/BUILD_${{matrix.target}}/INSTALL/lib/pkgconfig:${{env.HOME}}/BUILD_${{matrix.target}}/INSTALL/lib${{matrix.lib_postfix}}/pkgconfig"
|
||||||
CPPFLAGS: "-I/home/runner/BUILD_${{matrix.target}}/INSTALL/include"
|
CPPFLAGS: "-I${{env.HOME}}/BUILD_${{matrix.target}}/INSTALL/include"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user