Skip to content

Commit

Permalink
Give up macos-12. The github actions doesn't support it well
Browse files Browse the repository at this point in the history
  • Loading branch information
naokiri committed Sep 23, 2024
1 parent 5d48906 commit 63865ce
Showing 1 changed file with 19 additions and 23 deletions.
42 changes: 19 additions & 23 deletions .github/workflows/continuous_testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
name: library test
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, macos-12 ]
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
Expand Down Expand Up @@ -119,11 +119,7 @@ jobs:
brew install libxkbcommon
echo `brew --prefix`
- name: Build library
if: matrix.os != 'macos-12'
run: cargo +stable cbuild
- name: Build library (macos intel)
if: matrix.os == 'macos-12'
run: $HOME/.cargo/bin/cargo +stable cbuild
- name: copy shared data
run: mkdir -p ~/.local/share/libcskk && cp -r ./assets/* ~/.local/share/libcskk
# TODO: Use variable in github actions? Only target directory is different here.
Expand All @@ -145,24 +141,24 @@ jobs:
- name: Run lib test (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: LD_LIBRARY_PATH=./target/x86_64-unknown-linux-gnu/debug ./tests/lib_test
- name: copy header file (MacOS intel)
if: matrix.os == 'macos-12'
run: cp ./target/x86_64-apple-darwin/debug/libcskk.h ./tests/
- name: link lib versioning (MacOS intel)
if: matrix.os == 'macos-12'
run: ln -fs libcskk.${{ steps.versions.outputs.version }}.dylib ./target/x86_64-apple-darwin/debug/libcskk.dylib
- name: Show built file (MacOS intel)
if: matrix.os == 'macos-12'
run: ls -l ./target/*
- name: Show built file under debug (MacOS intel)
if: matrix.os == 'macos-12'
run: ls -l ./target/x86_64-apple-darwin/debug/
- name: Build lib test (MacOS intel)
if: matrix.os == 'macos-12'
run: gcc ./tests/c_shared_lib_test.c -L./target/x86_64-apple-darwin/debug/ -lcskk -lxkbcommon -o ./tests/lib_test
- name: Run lib test (MacOS intel)
if: matrix.os == 'macos-12'
run: DYLD_LIBRARY_PATH=./target/x86_64-apple-darwin/debug/ ./tests/lib_test
# - name: copy header file (MacOS intel)
# if: matrix.os == 'macos-12'
# run: cp ./target/x86_64-apple-darwin/debug/libcskk.h ./tests/
# - name: link lib versioning (MacOS intel)
# if: matrix.os == 'macos-12'
# run: ln -fs libcskk.${{ steps.versions.outputs.version }}.dylib ./target/x86_64-apple-darwin/debug/libcskk.dylib
# - name: Show built file (MacOS intel)
# if: matrix.os == 'macos-12'
# run: ls -l ./target/*
# - name: Show built file under debug (MacOS intel)
# if: matrix.os == 'macos-12'
# run: ls -l ./target/x86_64-apple-darwin/debug/
# - name: Build lib test (MacOS intel)
# if: matrix.os == 'macos-12'
# run: gcc ./tests/c_shared_lib_test.c -L./target/x86_64-apple-darwin/debug/ -lcskk -lxkbcommon -o ./tests/lib_test
# - name: Run lib test (MacOS intel)
# if: matrix.os == 'macos-12'
# run: DYLD_LIBRARY_PATH=./target/x86_64-apple-darwin/debug/ ./tests/lib_test
- name: copy header file (MacOS M1)
if: matrix.os == 'macos-latest'
run: cp ./target/aarch64-apple-darwin/debug/libcskk.h ./tests/
Expand Down

0 comments on commit 63865ce

Please sign in to comment.