From ea1cead51bcb581fe0d0b05a97b5891357fa83b2 Mon Sep 17 00:00:00 2001 From: Niklas van Schrick Date: Wed, 31 Jul 2024 22:13:14 +0200 Subject: [PATCH] Add workflow to validate built packages --- .github/workflows/build.yml | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..5d026ee --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,43 @@ +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: Build create + run: cargo package