-
Notifications
You must be signed in to change notification settings - Fork 34
50 lines (48 loc) · 1.2 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Build
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: ruby/[email protected]
with:
ruby-version: 3.3.5
- name: Set up environment
run: bundle install
- name: Build
run: bundle exec rake package
- name: Show standalone packages
run: ls pkg
- name: Upload standalone packages
uses: actions/upload-artifact@v4
with:
name: pkg
path: pkg
test:
defaults:
run:
shell: ${{ matrix.shell }}
needs: [build]
strategy:
fail-fast: false
matrix:
os: ["windows-latest","ubuntu-latest","macos-latest"]
shell: ["sh","bash"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Download all workflow run artifacts
uses: actions/download-artifact@v4
- name: test ${{ matrix.os }} package
run: ./script/unpack-and-test.sh
- name: test x86 package
if: ${{ runner.os == 'Windows'}}
run: ./script/unpack-and-test.sh
env:
BINARY_OS: 'windows'
BINARY_ARCH: 'x86'