forked from masamitsu-murase/seven_zip_ruby
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from fontist/chore/migrate-to-shared-workflow
- Loading branch information
Showing
4 changed files
with
72 additions
and
73 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: rake | ||
|
||
on: | ||
push: | ||
branches: [ master, main ] | ||
tags: [ v* ] | ||
pull_request: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
rake-alpine: | ||
name: Test on Ruby ${{ matrix.ruby.version }} ${{ matrix.os }}-${{ matrix.env.CC }} | ||
runs-on: ubuntu-latest | ||
env: ${{ matrix.env }} | ||
container: | ||
image: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- alpine:3.18 | ||
- alpine:3.16 | ||
env: | ||
- CC: gcc | ||
CXX: g++ | ||
- CC: clang | ||
CXX: clang++ | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Ruby | ||
run: | | ||
apk --no-cache --upgrade add build-base cmake git bash \ | ||
autoconf make binutils-dev pkgconfig tar ruby-dev clang | ||
- name: Install Bundler | ||
run: | | ||
gem install bundler | ||
bundle install | ||
- run: bundle exec rake | ||
|
||
rake: | ||
needs: rake-alpine | ||
uses: fontist/support/.github/workflows/rake.yml@main |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
next_version: | ||
description: | | ||
Next release version. Possible values: x.y.z, major, minor, patch (or pre|rc|etc). | ||
Also, you can pass 'skip' to skip 'git tag' and do 'gem push' for the current version | ||
required: true | ||
default: 'skip' | ||
repository_dispatch: | ||
types: [ do-release ] | ||
|
||
jobs: | ||
release: | ||
uses: fontist/support/.github/workflows/release.yml@main | ||
with: | ||
next_version: ${{ github.event.inputs.next_version }} | ||
secrets: | ||
rubygems-api-key: ${{ secrets.FONTIST_CI_RUBYGEMS_API_KEY }} |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,3 +77,5 @@ task :copy_binary do | |
FileUtils.cp(src, dest) if (File.exist?(src)) | ||
end | ||
end | ||
|
||
task default: %i[build_local spec] |