cd in bloaty compile step (#1775)
This commit is contained in:
50
.github/changed-files.yml
vendored
Normal file
50
.github/changed-files.yml
vendored
Normal 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'
|
||||
21
.github/workflows/android-ci.yml
vendored
21
.github/workflows/android-ci.yml
vendored
@@ -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' }}
|
||||
|
||||
25
.github/workflows/ios-ci.yml
vendored
25
.github/workflows/ios-ci.yml
vendored
@@ -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'
|
||||
|
||||
19
.github/workflows/linux-ci.yml
vendored
19
.github/workflows/linux-ci.yml
vendored
@@ -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'
|
||||
|
||||
5
.github/workflows/pr-bloaty.yml
vendored
5
.github/workflows/pr-bloaty.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user