-
Notifications
You must be signed in to change notification settings - Fork 123
42 lines (40 loc) · 1.49 KB
/
win.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
name: Windows
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
PKG_DATE: 20241228
jobs:
make-windows:
strategy:
matrix:
os: [windows-latest]
arch: [x86_64, x86]
ruby-version: [3.1.6, 3.2.6, 3.3.6, 3.4.1]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
# - name: Cancel Previous Runs
# uses: styfle/[email protected]
# with:
# all_but_latest: true
- uses: actions/checkout@v3
- name: "Set up Ruby"
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: package ${{ matrix.arch }}
run: |
uname -m
cd windows
sh -c 'mkdir -p cache output/${{ matrix.ruby-version }}'
sh -c './build-ruby.sh -a ${{ matrix.arch }} -r ${{ matrix.ruby-version }} cache output/${{ matrix.ruby-version }}'
sh -c './package.sh -r traveling-ruby-${{ env.PKG_DATE }}-${{ matrix.ruby-version }}-${{ matrix.arch }}-windows.tar.gz output/${{ matrix.ruby-version }}'
sh -c 'ls'
- name: "Upload Artifact - traveling-ruby-${{ env.PKG_DATE }}-${{ matrix.ruby-version }}-${{ matrix.arch }}-windows"
uses: actions/upload-artifact@v3
with:
name: traveling-ruby-${{ env.PKG_DATE }}-${{ matrix.ruby-version }}-${{ matrix.arch }}-windows.tar.gz
path: windows/traveling-ruby-${{ env.PKG_DATE }}-${{ matrix.ruby-version }}-${{ matrix.arch }}-windows.tar.gz