diff --git a/.github/workflows/compile_macos.yml b/.github/workflows/compile_macos.yml index 89360d654e..e9923ef980 100644 --- a/.github/workflows/compile_macos.yml +++ b/.github/workflows/compile_macos.yml @@ -18,57 +18,58 @@ concurrency: jobs: build: - matrix: - os: [macos-latest, macos-26] - environment: [Seqouia , Tahoe] runs-on: ${{ matrix.os }} strategy: matrix: - config: [ + os: [macos-latest, macos-26] + environment: [Sequoia, Tahoe] + config:[ "px4_sitl gz_x500" ] steps: - - name: install Python 3.10 - uses: actions/setup-python@v5 - with: - python-version: "3.10" + - name: install Python 3.10 + uses: actions/setup-python@v5 + with: + python-version: "3.10" - - uses: actions/checkout@v4 - - - name: Initialize and update git submodules - run: | - git submodule sync --recursive - git submodule update --init --recursive --jobs 4 - - - name: setup - run: | - ./Tools/setup/macos.sh --sim-tools + - uses: actions/checkout@v4 - - name: Prepare ccache timestamp - id: ccache_cache_timestamp - shell: cmake -P {0} - run: | - string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC) - message("::set-output name=timestamp::${current_date}") - - name: ccache cache files - uses: actions/cache@v4 - with: - path: ~/.ccache - key: macos_${{matrix.config}}-ccache-${{steps.ccache_cache_timestamp.outputs.timestamp}} - restore-keys: macos_${{matrix.config}}-ccache- - - name: setup ccache - run: | - mkdir -p ~/.ccache - echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf - echo "compression = true" >> ~/.ccache/ccache.conf - echo "compression_level = 6" >> ~/.ccache/ccache.conf - echo "max_size = 40M" >> ~/.ccache/ccache.conf - echo "hash_dir = false" >> ~/.ccache/ccache.conf - ccache -s - ccache -z + - name: Initialize and update git submodules + run: | + git submodule sync --recursive + git submodule update --init --recursive --jobs 4 - - name: make ${{matrix.config}} - run: | - ccache -z - make ${{matrix.config}} - ccache -s + - name: setup + run: | + ./Tools/setup/macos.sh --sim-tools + + - name: Prepare ccache timestamp + id: ccache_cache_timestamp + shell: cmake -P {0} + run: | + string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC) + message("::set-output name=timestamp::${current_date}") + + - name: ccache cache files + uses: actions/cache@v4 + with: + path: ~/.ccache + key: macos_${{matrix.config}}-ccache-${{steps.ccache_cache_timestamp.outputs.timestamp}} + restore-keys: macos_${{matrix.config}}-ccache- + + - name: setup ccache + run: | + mkdir -p ~/.ccache + echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf + echo "compression = true" >> ~/.ccache/ccache.conf + echo "compression_level = 6" >> ~/.ccache/ccache.conf + echo "max_size = 40M" >> ~/.ccache/ccache.conf + echo "hash_dir = false" >> ~/.ccache/ccache.conf + ccache -s + ccache -z + + - name: make ${{matrix.config}} + run: | + ccache -z + make ${{matrix.config}} + ccache -s