-
Notifications
You must be signed in to change notification settings - Fork 34
49 lines (47 loc) · 1.15 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
name: Build
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
- 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@v3
with:
name: pkg
path: pkg
test:
defaults:
run:
shell: bash
needs: [build]
strategy:
fail-fast: false
matrix:
os: ["windows-latest","ubuntu-latest","macos-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Download all workflow run artifacts
uses: actions/download-artifact@v3
- 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'