Skip to content

Commit fba8eb4

Browse files
committed
Build package
1 parent 403ff84 commit fba8eb4

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ubuntu
1+
name: test
22

33
on: [push, pull_request]
44

@@ -11,10 +11,29 @@ jobs:
1111
os: [ ubuntu-latest, macos-latest, windows-latest ]
1212
runs-on: ${{ matrix.os }}
1313
steps:
14+
- name: git config
15+
run: |
16+
git config --global core.autocrlf false
17+
git config --global core.eol lf
18+
git config --global advice.detachedHead 0
1419
- uses: actions/checkout@master
1520
- name: Set up Ruby
1621
uses: ruby/setup-ruby@v1
1722
with:
1823
ruby-version: ${{ matrix.ruby }}
1924
- name: Run test
2025
run: rake test
26+
- id: build
27+
run: |
28+
rake build
29+
echo "::set-output name=pkg::${GITHUB_REPOSITORY#*/}-${RUNNING_OS%-*}"
30+
env:
31+
RUNNING_OS: ${{matrix.os}}
32+
if: "matrix.ruby == '3.0'"
33+
shell: bash
34+
- name: Upload package
35+
uses: actions/upload-artifact@v2
36+
with:
37+
path: pkg/*.gem
38+
name: ${{steps.build.outputs.pkg}}
39+
if: steps.build.outputs.pkg

0 commit comments

Comments
 (0)