Skip to content

Commit

Permalink
ci: clean pkg dir
Browse files Browse the repository at this point in the history
Last time I published the lib, there were old gems from the previous
version inside the pkg/ dir. I might be doing something wrong in
the existing jobs, but maybe a clean before starting to build would
help.
  • Loading branch information
stackmystack committed Dec 18, 2023
1 parent 5591c76 commit c93e749
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,18 @@ name: ci
on: [push, pull_request]

jobs:
clean-pkg-dir:
steps:
- name: clean pkg/ dir
run: |
rm pkg/*.gem
native-gems:
needs: clean-pkg-dir
strategy:
fail-fast: false
matrix:
ruby: [2.7, 3.0, 3.1, 3.2]
platform:
platform:
- { os: ubuntu, target: linux-x64 }
- { os: macos, target: macos-x64 }
runs-on: ${{ matrix.platform.os }}-latest
Expand Down Expand Up @@ -62,6 +68,7 @@ jobs:
# - We're not testing here also because it's been taken care of in the previous
# step
install-only-gem:
needs: clean-pkg-dir
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -106,11 +113,12 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

disable-sys-libs:
needs: clean-pkg-dir
strategy:
fail-fast: false
matrix:
ruby: [2.7, 3.0, 3.1, 3.2]
platform:
platform:
- { os: ubuntu, target: linux-x64, ext: so }
- { os: macos, target: macos-x64, ext: dylib }
runs-on: ${{ matrix.platform.os }}-latest
Expand Down Expand Up @@ -142,11 +150,11 @@ jobs:
bundle exec rake test
- name: fresh project on PR
if: github.event_name == 'pull_request'
env:
env:
BRANCH: HEAD
run: bin/ci-test-project
- name: fresh project when not a PR
if: github.event_name != 'pull_request'
env:
env:
BRANCH: ${{ github.ref_name }}
run: bin/ci-test-project

0 comments on commit c93e749

Please sign in to comment.