Merge pull request #12 from code0-tech/ref/remove-java-build-config #44
This file contains 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: Build packages | |
on: | |
push: | |
jobs: | |
rubygems: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
working-directory: build/ruby | |
steps: | |
# Set up | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.2.2' | |
- name: Install gems | |
run: bundle install | |
- name: Generate ruby | |
run: bundle exec rake generate_ruby:all | |
- name: Run tests | |
run: bundle exec rspec | |
crates: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
working-directory: build/rust | |
steps: | |
# Set up | |
- uses: actions/checkout@v4 | |
- name: Setup rust | |
run: rustup update --no-self-update stable | |
- name: Install protoc | |
run: curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v28.0-rc1/protoc-28.0-rc-1-linux-x86_64.zip && unzip protoc-28.0-rc-1-linux-x86_64.zip -d ${{ runner.temp }}/proto && chmod +x ${{ runner.temp }}/proto/bin/protoc && ${{ runner.temp }}/proto/bin/protoc --version | |
- name: Build crate | |
run: PATH=${{ runner.temp }}/proto/bin:$PATH cargo build | |
env: | |
RUST_BACKTRACE: 'full' | |
- name: Package crate | |
run: cargo package --allow-dirty |