Skip to content

Build runzip

Build runzip #3

Workflow file for this run

name: Build runzip
on:
workflow_dispatch:
inputs:
ripunzip-version:
description: "what reference to checktout from google/runzip"
required: false
default: v1.2.1
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-12, windows-2019]
runs-on: ${{ matrix.os }}

Check failure on line 17 in .github/workflows/build-ripunzip.yml

View workflow run for this annotation

GitHub Actions / Build runzip

Invalid workflow file

The workflow is not valid. .github/workflows/build-ripunzip.yml (Line: 17, Col: 7): Unexpected value 'runs-on' .github/workflows/build-ripunzip.yml (Line: 13, Col: 5): Required property is missing: runs-on
env:
OS: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
repository: google/ripunzip
ref: ${{ inputs.ripunzip-version }}
- shell: bash
if: runner.os != 'macOS'
run: |
cargo build --release
mv target/release/ripunzip ripunzip-${OS,,}
- shell: bash
if: runner.os == 'macOS'
run: |
rustup --target x86_64-apple-darwin
rustup --target aarch64-apple-darwin
cargo build --target x86_64-apple-darwin --release
cargo build --target aarch64-apple-darwin --release
lipo -create -output ripunzip-macos \
-arch x86_64 target/x86_64-apple-darwin/release/ripunzip \
-arch arm64 target/aarch64-apple-darwin/release/ripunzip
- uses: actions/upload-artifact@v4
with:
name: ripunzip-${{ runner.os }}
path: ripunzip-*