mirror of
https://github.com/kiwix/kiwix-apple-custom.git
synced 2025-09-09 15:21:35 -04:00
commit
c8ad01270f
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
@ -37,20 +37,15 @@ jobs:
|
|||||||
|
|
||||||
- name: Test python scripts
|
- name: Test python scripts
|
||||||
working-directory: custom
|
working-directory: custom
|
||||||
env:
|
run: PYTHONPATH=src python -m unittest discover -s tests
|
||||||
PYTHONPATH: src/
|
|
||||||
run: python -m unittest
|
|
||||||
|
|
||||||
- name: Set test tag variable as an output
|
- name: Set test tag variable as an output
|
||||||
id: vars
|
id: vars
|
||||||
run: echo "tag=testapp_2023.12.1" >> $GITHUB_OUTPUT
|
run: echo "tag=testapp_2023.12.1" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Validate and parse the tag
|
- name: Validate and parse the tag
|
||||||
run:
|
working-directory: custom
|
||||||
|
|
run: python src/tag_validator.py ${{ steps.vars.outputs.tag }}
|
||||||
cd custom
|
|
||||||
python src/tag_validator.py ${{ steps.vars.outputs.tag }}
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
- name: Check-out kiwix/apple
|
- name: Check-out kiwix/apple
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -59,11 +54,10 @@ jobs:
|
|||||||
path: apple
|
path: apple
|
||||||
|
|
||||||
- name: Install Kiwix dependencies
|
- name: Install Kiwix dependencies
|
||||||
|
working-directory: apple
|
||||||
run: | # remove pre-commit, it's not needed for CI
|
run: | # remove pre-commit, it's not needed for CI
|
||||||
cd apple
|
|
||||||
cat Brewfile | grep -v -e pre-commit > Brewfile_CI
|
cat Brewfile | grep -v -e pre-commit > Brewfile_CI
|
||||||
brew bundle --force --file Brewfile_CI
|
brew bundle --force --file Brewfile_CI
|
||||||
cd ..
|
|
||||||
|
|
||||||
- name: Generate project based on tag
|
- name: Generate project based on tag
|
||||||
env:
|
env:
|
||||||
@ -86,7 +80,6 @@ jobs:
|
|||||||
|
|
||||||
# run xcodegen on our custom project
|
# run xcodegen on our custom project
|
||||||
xcodegen -s custom_project.yml
|
xcodegen -s custom_project.yml
|
||||||
|
|
||||||
ls -la
|
ls -la
|
||||||
|
|
||||||
|
|
||||||
|
@ -8,8 +8,8 @@ This project contains data and scripts needed to create specific
|
|||||||
custom Kiwix Apple apps.
|
custom Kiwix Apple apps.
|
||||||
|
|
||||||
[](https://www.codefactor.io/repository/github/kiwix/kiwix-apple-custom)
|
[](https://www.codefactor.io/repository/github/kiwix/kiwix-apple-custom)
|
||||||
[](https://github.com/kiwix/apple/actions/workflows/ci.yml?query=branch%3Amain)
|
[](https://github.com/kiwix/kiwix-apple-custom/actions/workflows/ci.yml)
|
||||||
[](https://github.com/kiwix/kiwix-apple-custom/actions/workflows/cd?query=branch%3Amain)
|
[](https://github.com/kiwix/kiwix-apple-custom/actions/workflows/cd.yml)
|
||||||
[](https://www.gnu.org/licenses/gpl-3.0)
|
[](https://www.gnu.org/licenses/gpl-3.0)
|
||||||
|
|
||||||
## Custom app folder
|
## Custom app folder
|
||||||
|
0
src/__init__.py
Normal file
0
src/__init__.py
Normal file
Loading…
x
Reference in New Issue
Block a user