Skip to content

Commit

Permalink
Merge pull request #24 from secondlife/signal/archive-format
Browse files Browse the repository at this point in the history
Add archive-format input
  • Loading branch information
bennettgoble committed Mar 29, 2023
2 parents 378b0e3 + 0511852 commit 0a651b0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ jobs:
autobuild-version: main
checkout: false

# Test alternative compression-format
- uses: ./
with:
archive-format: tbz2
checkout: false
- name: Check bz2 package
shell: bash
run: ls *.tar.bz2 >/dev/null || exit "Expected .tar.bz2 package"

# Test custom python version
- uses: actions/setup-python@v4
with:
Expand Down
6 changes: 5 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Autobuild
description: Build and package an autobuild project

inputs:
archive-format:
type: string
description: Autobuild package compression format (tbz2, tzst, etc.)
default: tzst
checkout:
type: boolean
description: Perform git checkout
Expand Down Expand Up @@ -204,7 +208,7 @@ runs:
autobuild install
autobuild configure ${{ inputs.configure-args }}
autobuild build --no-configure ${{ inputs.build-args }}
autobuild package --results-file autobuild-results.json --archive-format tzst
autobuild package --results-file autobuild-results.json --archive-format ${{ inputs.archive-format }}
autobuild graph --type mermaid > autobuild-graph.mermaid
- name: Read results
Expand Down

0 comments on commit 0a651b0

Please sign in to comment.