Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci/build update #16

Merged
merged 4 commits into from
Dec 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ci/.env
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ MACOS_PACKAGES="make \
zip"

CMAKE_VERSION=3.31.1
VCPKG_FORCE_SYSTEM_BINARIES=1
DEBIAN_FRONTEND=noninteractive
#VCPKG_FORCE_SYSTEM_BINARIES=1
24 changes: 18 additions & 6 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:
env:
USE_CACHE: ${{ github.event.inputs.use_cache || 'true' }}
CACHE_VERSION: v01
CACHE_PATHS: |
CACHE_PATH: |
~/.cargo
~/.hunter
~/.cache/pip
Expand All @@ -28,32 +28,44 @@ env:
.venv
.build


jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-24.04, macos-15]
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v4

with:
submodules: true
fetch-depth: 0

- name: "Restore cache dependencies"
id: cache-restore
if: ${{ env.USE_CACHE == 'true' }}
uses: actions/cache/restore@v4
with:
path: ${{ env.CACHE_PATHS }}
path: ${{ env.CACHE_PATH }}
key: jam-${{ runner.os }}-${{ github.job }}-${{ env.CACHE_VERSION }}
restore-keys: |
jam-${{ runner.os }}-${{ github.job }}
jam-${{ runner.os }}

- name: "Basic init"
run: ./.ci/scripts/init.sh

run: |
if [[ $RUNNER_OS == "Linux" ]]; then
sudo ./.ci/scripts/init.sh
else
./.ci/scripts/init.sh
fi

- name: "Init all dependencies"
run: make init_all
run: |
make init_py
make init_vcpkg

- name: "Configure"
run: make configure
Expand Down
Loading