-
Notifications
You must be signed in to change notification settings - Fork 65
59 lines (58 loc) · 1.56 KB
/
Copy pathrelease.yaml
File metadata and controls
59 lines (58 loc) · 1.56 KB
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
51
52
53
54
55
56
57
58
59
name: Release
on:
push:
tags:
- "*"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-22.04
- os: macos-latest
- os: ubuntu-22.04-arm
steps:
- uses: actions/checkout@v6
with:
submodules: true
fetch-depth: 0
- if: runner.os == 'macOS'
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.95.0
target: aarch64-apple-darwin
override: true
- if: runner.os != 'macOS'
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.95.0
override: true
target: aarch64-unknown-linux-gnu
- run: ./script/make_release
- uses: actions/upload-artifact@v7
with:
name: rubyfmt-release-artifact-${{ matrix.os }}
path: rubyfmt-*.tar.gz
release:
runs-on: macos-latest
needs:
- build
steps:
- uses: actions/download-artifact@v8
with:
name: rubyfmt-release-artifact-ubuntu-22.04
- uses: actions/download-artifact@v8
with:
name: rubyfmt-release-artifact-macos-latest
- uses: actions/download-artifact@v8
with:
name: rubyfmt-release-artifact-ubuntu-22.04-arm
- name: Ship It 🚢
uses: softprops/action-gh-release@v3
if: startsWith(github.ref, 'refs/tags/')
with:
files: rubyfmt-*.tar.gz
fail_on_unmatched_files: true
generate_release_notes: true