Skip to content

Commit

Permalink
cd in bloaty compile step (#1775)
Browse files Browse the repository at this point in the history
  • Loading branch information
louwers authored Oct 18, 2023
1 parent ccc0555 commit b40032e
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 61 deletions.
50 changes: 50 additions & 0 deletions .github/changed-files.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 2 additions & 19 deletions .github/workflows/android-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand Down
25 changes: 2 additions & 23 deletions .github/workflows/ios-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
19 changes: 2 additions & 17 deletions .github/workflows/linux-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/pr-bloaty.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b40032e

Please sign in to comment.