Bump copyright years #27
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 | |
on: | |
push: | |
branches: | |
- master | |
pull_request: {} | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: restore | |
run: sudo .build/restore-deb.sh | |
- name: create a temp dir to install editorconfig-checker | |
id: ec_tmpdir | |
run: echo "path=$(mktemp -d -p "$RUNNER_TEMP")" >> "$GITHUB_OUTPUT" | |
- name: install editorconfig-checker | |
run: | | |
curl -fsSL -O https://github.com/editorconfig-checker/editorconfig-checker/releases/download/v3.0.1/ec-linux-amd64.tar.gz | |
sha256sum -c -w "$GITHUB_WORKSPACE"/.github/checksums.txt | |
tar -xzvf ec-linux-amd64.tar.gz --strip-components 1 bin/ec-linux-amd64 | |
mv ec-linux-amd64 editorconfig-checker | |
sudo install -p -t /usr/local/bin editorconfig-checker | |
working-directory: ${{ steps.ec_tmpdir.outputs.path }} | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.2' | |
bundler-cache: true | |
- name: test | |
run: bundle exec rspec --force-color | |
- name: rubocop | |
run: bundle exec rubocop --color || true | |
- name: check for .editorconfig violations in non-Ruby files | |
# RuboCop has already checked Ruby files for issues that editorconfig-checker | |
# checks for, so we're excluding Ruby files here. | |
run: editorconfig-checker -exclude '^bin/ksdump$|^bin/ksv$|\.rb$|\.gemspec$|^Gemfile$' | |
- name: gem build | |
run: gem build kaitai-struct-visualizer | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: kaitai-struct-visualizer | |
path: kaitai-struct-visualizer-*.gem |