Skip to content

Commit

Permalink
Attempt to fix sassc bundler cache issue
Browse files Browse the repository at this point in the history
Turn off bundler cache (for now).
  • Loading branch information
arvindsv committed Mar 17, 2021
1 parent aec398c commit 8295e31
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build_and_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.2
bundler-cache: true # would run bundle install
bundler-cache: false # true would run bundle install
- name: Run the build
run: bundle exec rake build --verbose
run: |
bundle config --local build.sassc --disable-march-tune-native
bundle install
bundle exec rake build --verbose
push_to_gh_pages:
needs: complete_build
runs-on: ubuntu-latest
Expand All @@ -36,7 +39,7 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.2
bundler-cache: true # would run bundle install
bundler-cache: false # true would run bundle install
- name: Set up user in git config
env:
USER: "${{ secrets.USER_TO_WRITE }}"
Expand All @@ -45,6 +48,8 @@ jobs:
git config --global user.email "${USER}@github.com"
- name: Set up upstream and publish to gh pages
run: |
bundle config --local build.sassc --disable-march-tune-native
bundle install
git remote add preview https://${USER}:${TOKEN}@github.com/gocd/preview.go.cd.git
bundle exec rake publish --trace
env:
Expand Down

0 comments on commit 8295e31

Please sign in to comment.