cd in bloaty compile step (#1775)

This commit is contained in:
Bart Louwers
2023-10-18 14:06:58 +02:00
committed by GitHub
parent ccc05556f4
commit b40032ea06
5 changed files with 59 additions and 61 deletions

50
.github/changed-files.yml vendored Normal file
View File

@@ -0,0 +1,50 @@
linux:
- 'src/**'
- 'test/**'
- 'render-test/**'
- 'expression-test/**'
- 'include/**'
- '.github/workflows/linux-ci.yml'
- 'vendor/**'
- 'CMakeLists.txt'
- 'metrics/linux-gcc8-release-style.json'
- 'WORKSPACE'
- 'BUILD.bazel'
- '.bazelrc'
- '.bazelversion'
ios:
- 'platform/ios/**'
- 'platform/darwin/**'
- '.github/workflows/ios-ci.yml'
- 'bin/**'
- 'expression-test/**'
- 'include/**'
- 'metrics/**'
- 'platform/default/**'
- 'render-test/**'
- 'scripts/**'
- 'src/**'
- 'test/**'
- 'vendor/**'
- '.gitmodules'
- '!**/*.md'
- 'WORKSPACE'
- 'BUILD.bazel'
- '.bazelrc'
- '.bazelversion'
android:
- 'CMakeLists.txt'
- 'platform/android/**'
- '.github/workflows/android-ci.yml'
- 'bin/**'
- 'expression-test/**'
- 'include/**'
- 'metrics/**'
- 'platform/default/**'
- 'render-test/**'
- 'scripts/**'
- 'src/**'
- 'test/**'
- 'vendor/**'
- '.gitmodules'
- '!**/*.md'

View File

@@ -20,33 +20,16 @@ jobs:
pre_job:
runs-on: ubuntu-latest
outputs:
should_skip: github.event_name != 'workflow_dispatch' && steps.changed-files.outputs.android_any_changed != 'true'
should_skip: ${{ github.event_name != 'workflow_dispatch' && steps.changed-files.outputs.android_any_changed != 'true' }}
steps:
- uses: actions/checkout@v4
if: github.event_name == 'push'
- name: Get all Android files that have changed
if: github.event_name != 'workflow_dispatch'
id: changed-files
uses: tj-actions/changed-files@v39
with:
files_yaml: |
android:
- 'CMakeLists.txt'
- 'platform/android/**'
- '.github/workflows/android-ci.yml'
- 'bin/**'
- 'expression-test/**'
- 'include/**'
- 'metrics/**'
- 'platform/default/**'
- 'render-test/**'
- 'scripts/**'
- 'src/**'
- 'test/**'
- 'vendor/**'
- '.gitmodules'
- '!**/*.md'
files_yaml_from_source_file: .github/changed-files.yml
android-build:
runs-on: ${{ github.event.pull_request && !github.event.pull_request.draft && 'MapLibre_Native_Linux_16_core' || 'ubuntu-22.04' }}

View File

@@ -21,37 +21,16 @@ jobs:
pre_job:
runs-on: ubuntu-latest
outputs:
should_skip: github.event_name != 'workflow_dispatch' && steps.changed-files-yaml.outputs.ios_any_changed != 'true'
should_skip: ${{ github.event_name != 'workflow_dispatch' && steps.changed-files-yaml.outputs.ios_any_changed != 'true' }}
steps:
- uses: actions/checkout@v4
if: github.event_name == 'push'
- name: Get all iOS files that have changed
if: github.event_name != 'workflow_dispatch'
id: changed-files-yaml
uses: tj-actions/changed-files@v39
with:
files_yaml: |
ios:
- 'platform/ios/**'
- 'platform/darwin/**'
- '.github/workflows/ios-ci.yml'
- 'bin/**'
- 'expression-test/**'
- 'include/**'
- 'metrics/**'
- 'platform/default/**'
- 'render-test/**'
- 'scripts/**'
- 'src/**'
- 'test/**'
- 'vendor/**'
- '.gitmodules'
- '!**/*.md'
- 'WORKSPACE'
- 'BUILD.bazel'
- '.bazelrc'
- '.bazelversion'
files_yaml_from_source_file: .github/changed-files.yml
- name: Run step if test file(s) change
if: steps.changed-files-yaml.outputs.ios_any_changed == 'true'

View File

@@ -19,31 +19,16 @@ jobs:
pre_job:
runs-on: ubuntu-22.04
outputs:
should_skip: github.event_name != 'workflow_dispatch' && steps.changed-files.outputs.linux_any_changed != 'true'
should_skip: ${{ github.event_name != 'workflow_dispatch' && steps.changed-files.outputs.linux_any_changed != 'true' }}
steps:
- uses: actions/checkout@v4
if: github.event_name == 'push'
- name: Get all Linux files that have changed
if: github.event_name != 'workflow_dispatch'
id: changed-files
uses: tj-actions/changed-files@v39
with:
files_yaml: |
linux:
- 'src/**'
- 'test/**'
- 'render-test/**'
- 'expression-test/**'
- 'include/**'
- '.github/workflows/linux-ci.yml'
- 'vendor/**'
- 'CMakeLists.txt'
- 'metrics/linux-gcc8-release-style.json'
- 'WORKSPACE'
- 'BUILD.bazel'
- '.bazelrc'
- '.bazelversion'
files_yaml_from_source_file: .github/changed-files.yml
- name: List changed files
if: steps.changed-files.outputs.linux_any_changed == 'true'

View File

@@ -46,9 +46,10 @@ jobs:
- name: Compile Bloaty
run: |
git clone https://github.com/google/bloaty.git
cd bloaty
git checkout "$bloaty_sha"
cmake -B bloaty/build -G Ninja -S bloaty
cmake --build bloaty/build
cmake -B build -G Ninja -S .
cmake --build build
- name: Cache Bloaty
uses: actions/cache@v3