-
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #953 from kiwix/remove-bionic
Remove Ubuntu Bionic from CI/CD
- Loading branch information
Showing
2 changed files
with
37 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,42 @@ | ||
name: CI | ||
|
||
on: [push] | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
Linux: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
target: | ||
- bionic | ||
- focal | ||
include: | ||
- target: bionic | ||
image_variant: bionic | ||
- target: focal | ||
image_variant: focal | ||
lib_postfix: '/x86_64-linux-gnu' | ||
env: | ||
HOME: /home/runner | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
container: | ||
image: ghcr.io/kiwix/kiwix-build_ci_${{matrix.image_variant}}:36 | ||
image: ghcr.io/kiwix/kiwix-build_ci_${{matrix.image_variant}}:38 | ||
|
||
steps: | ||
- name: Extract branch name | ||
shell: bash | ||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | ||
id: extract_branch | ||
- name: Checkout code | ||
shell: python | ||
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 | ||
shell: bash | ||
run: | | ||
ARCHIVE_NAME=deps2_bionic_native_dyn_kiwix-desktop.tar.xz | ||
wget -O- http://tmp.kiwix.org/ci/${ARCHIVE_NAME} | tar -xJ -C /home/runner | ||
- name: Compile | ||
shell: bash | ||
run: | | ||
cd $HOME/kiwix-desktop | ||
qmake PREFIX=$HOME/BUILD_native_dyn/INSTALL | ||
make | ||
env: | ||
PKG_CONFIG_PATH: "/home/runner/BUILD_native_dyn/INSTALL/lib/pkgconfig:/home/runner/BUILD_native_dyn/INSTALL/lib${{matrix.lib_postfix}}/pkgconfig" | ||
- name: Install dependencies | ||
shell: bash | ||
run: | | ||
ARCHIVE_NAME=deps2_focal_native_dyn_kiwix-desktop.tar.xz | ||
wget -O- http://tmp.kiwix.org/ci/${ARCHIVE_NAME} | tar -xJ -C ${{env.HOME}} | ||
- name: Retrieve source code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Compile source code | ||
shell: bash | ||
env: | ||
PKG_CONFIG_PATH: "/home/runner/BUILD_native_dyn/INSTALL/lib/pkgconfig:/home/runner/BUILD_native_dyn/INSTALL/lib${{matrix.lib_postfix}}/pkgconfig" | ||
run: | | ||
qmake PREFIX=$HOME/BUILD_native_dyn/INSTALL | ||
make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters