From 710af98073d91d2222f5ef0af556fc9597a0d22b Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Sat, 7 Sep 2024 20:12:06 +0900 Subject: [PATCH] Update CI --- .github/workflows/main.yml | 27 --------------------------- .github/workflows/test.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 27 deletions(-) delete mode 100644 .github/workflows/main.yml create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 935871d..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Ruby - -on: - push: - pull_request: - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-latest - name: Ruby ${{ matrix.ruby }} - strategy: - matrix: - ruby: - - '3.2.0' - - steps: - - uses: actions/checkout@v3 - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: ${{ matrix.ruby }} - bundler-cache: true - - name: Install hdf5 - run: sudo apt-get install libhdf5-dev - - name: Run the default task - run: bundle exec rake diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..1a8e66e --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: test + +on: [push, pull_request, workflow_dispatch] + +jobs: + build: + runs-on: ${{ matrix.os }}-latest + name: ${{ matrix.os }} ruby ${{ matrix.ruby }} + strategy: + matrix: + os: [ubuntu, macos] + ruby: [3.2, 3.3] + + steps: + - uses: actions/checkout@v4 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + - if: matrix.os == 'ubuntu' + name: Install hdf5 + run: sudo apt-get install libhdf5-dev + - if: matrix.os == 'macos' + name: Install hdf5 + run: brew install hdf5 + - name: Run the default task + run: bundle exec rake