Skip to content

Redo the egg-herbie release action #15

Redo the egg-herbie release action

Redo the egg-herbie release action #15

Workflow file for this run

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

Check failure on line 72 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Build new Herbie release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 72, Col: 9): 'uses' is already defined
with:
tag: ${{ github.ref }}
name: ${{ github.ref }}
commit: ${{ github.commit }}
draft: true
prerelease: false
artifacts: egg-herbie/egg-herbie-*