Skip to content

Rename job

Rename job #18

Workflow file for this run

name: Build new Herbie release
on: [push]
# push:
# tags:
# - 'v*'
jobs:
build:
name: Build
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@v1
with:
tag: ${{ github.ref }}
name: ${{ github.ref }}
commit: ${{ github.commit }}
draft: true
prerelease: false
artifacts: egg-herbie/egg-herbie-*