Skip to content

Commit

Permalink
GitHub Actions: run init.bat/init.sh script just before cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
rmisev committed Sep 3, 2023
1 parent 697f4b0 commit 49fc5c5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: get dependencies
run: ./init.sh
- name: apt-get install
if: ${{ matrix.install }}
run: |
sudo apt-get update
sudo apt-get install -y ${{ matrix.install }}
- name: get dependencies
run: ./init.sh
- name: cmake
run: cmake -S . -B build -DCMAKE_CXX_COMPILER=${{ matrix.cxx_compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.cxx_standard }} ${{ matrix.cmake_options }}
- name: static analysis
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: get dependencies
run: ./init.sh
- name: install ICU library
run: brew install icu4c
- name: get dependencies
run: ./init.sh
- name: cmake
run: cmake -S . -B build -DCMAKE_CXX_COMPILER=${{ matrix.cxx_compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.cxx_standard }} ${{ matrix.cmake_options }}
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: get dependencies
run: ./init.sh
- name: apt-get install
if: ${{ matrix.install }}
run: |
sudo apt-get update
sudo apt-get install -y ${{ matrix.install }}
- name: get dependencies
run: ./init.sh
- name: cmake
run: cmake -S . -B build -DCMAKE_CXX_COMPILER=${{ matrix.cxx_compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.cxx_standard }} ${{ matrix.cmake_options }}
- name: build
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: get dependencies
run: init.bat
shell: cmd
- name: install ICU library
run: install-icu.bat C:\LIB 73 2
shell: cmd
- name: get dependencies
run: init.bat
shell: cmd
- name: cmake
run: cmake -S . -B build -G "${{ matrix.generator }}" -A x64 -DCMAKE_CXX_STANDARD=${{ matrix.cxx_standard }} -DICU_ROOT=C:\LIB\ICU ${{ matrix.cmake_options }}
- name: build
Expand Down

0 comments on commit 49fc5c5

Please sign in to comment.