Skip to content

Commit

Permalink
Merge pull request #16 from qdrvm/ci/build_update
Browse files Browse the repository at this point in the history
Ci/build update
  • Loading branch information
zerg-su authored Dec 8, 2024
2 parents c8559a4 + 0a86558 commit ee8955a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
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

0 comments on commit ee8955a

Please sign in to comment.