-
Notifications
You must be signed in to change notification settings - Fork 32
79 lines (66 loc) · 1.92 KB
/
release.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Build new Herbie release
on:
push:
tags:
- 'v*'
jobs:
job2:
name: Build
needs: job1
strategy:
matrix: # manual matrix
include:
- os: windows-latest
os-name: windows
- os: ubuntu-20.04 # keep old for glibc compatability
os-name: ubuntu
- os: macos-latest
os-name: macOS
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install Racket
uses: Bogdanp/[email protected]
with:
version: 8.11
- name: Install Rust compiler
uses: actions-rs/[email protected]
with:
toolchain: stable
default: true
override: true
- name: build egg-herbie
run: cargo build --release --manifest-path=egg-herbie/Cargo.toml
- name: Create tarball
run: raco pkg create --format zip egg-herbie
- name: Upload pre-built egg-herbie
uses: actions/upload-artifact@v4
with:
path: egg-herbie.zip
name: egg-herbie-${{ matrix.os-name }}.zip
- name: Upload pre-built egg-herbie checksum
uses: actions/upload-artifact@v4
with:
path: egg-herbie.zip.CHECKSUM
name: egg-herbie-${{ matrix.os-name }}.zip.CHECKSUM
release:
name: Create Initial Release
runs-on: ubuntu-latest
needs: build
steps:
- name: Download pre-built artifacts
uses: actions/download-artifact@v4
with:
path: egg-herbie
pattern: egg-herbie-*
merge-multiple: true
- name: Create Release
uses: ncipollo/release-action
uses: actions/create-release@v1
with:
tag: ${{ github.ref }}
name: ${{ github.ref }}
commit: ${{ github.commit }}
draft: true
prerelease: false
artifacts: egg-herbie/egg-herbie-*