v2.0.0: Bump ruby and oppen #90
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cross Compile | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
native-gems: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: extractions/setup-just@v1 | |
- name: setup ruby 3.3 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.3 # rake-compiler-dock fails with newer rubies, complaining about GLIBC. | |
- name: build and install tree-sitter | |
run: just setup-ts | |
- name: setup | |
run: just setup-bundler | |
- name: compile | |
run: just compile | |
- name: package cross-compiled gems | |
run: just gem-cross | |
- name: download pre-compiled parsers | |
run: just dl-parsers linux-x64 # TODO: test on a mac? | |
# FIXME: I faced a lot of issues with gemstash while running the project | |
# with gemstash and bundler. It refuses to correctly recognize the ruby | |
# version. For instance, with ruby-version 3.3 I get this: | |
# | |
# Because every version of ruby_tree_sitter depends on Ruby >= 3.4, < 3.5.dev | |
# and Gemfile depends on ruby_tree_sitter = 1.11.0, | |
# Ruby >= 3.4, < 3.5.dev is required. | |
# | |
# Yes, I am running on a ruby 3.3 and getting complaints on ruby 3.4. | |
# But even before the release of 3.4, I got: | |
# | |
# Ruby >= 3.3, < 3.4.dev is required. | |
# | |
# So I decided to turn it off and maybe get back to it later. | |
# I looked at issues of bundler, nokogiri, gemstash, and rake-compiler-doc, | |
# and I couldn't find anyone complaining about this issue. | |
# | |
# Moreover, at one point, it started working again, and now it doesn't. | |
# So it's also very flaky. | |
# | |
# - name: test cross-compiled gems | |
# run: just gem-cross-test | |
# - name: test cross-compiled gems | |
# run: just gem-cross-test | |
- name: package platform-agnostic gem | |
run: | | |
rm -rf Gemfile.lock | |
just setup | |
just gem | |
- name: release | |
if: github.event_name != 'pull_request' | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: ${{ github.ref }}-${{ steps.vars.outputs.sha_short }} | |
draft: true | |
files: | | |
./pkg/* | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |