Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #10 from Robert-96/main
Add support for macOS-based workflows
  • Loading branch information
Yoann Chaudet authored and GitHub committed Aug 9, 2022
2 parents 780ca3f + e361946 commit f4e6901
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion action.yml
Expand Up @@ -14,7 +14,7 @@ runs:
steps:
- name: Archive artifact
shell: bash
if: runner.os != 'Windows'
if: runner.os == 'Linux'
run: |
tar \
--dereference --hard-dereference \
Expand All @@ -24,6 +24,19 @@ runs:
--exclude=.github \
.
# Switch to gtar (GNU tar instead of bsdtar which is the default in the MacOS runners so we can use --hard-dereference)
- name: Archive artifact
shell: bash
if: runner.os == 'macOS'
run: |
gtar \
--dereference --hard-dereference \
--directory ${{ inputs.path }} \
-cvf ${{ runner.temp }}/artifact.tar \
--exclude=.git \
--exclude=.github \
.
# Massage the paths for Windows only
- name: Archive artifact
shell: bash
Expand Down

0 comments on commit f4e6901

Please sign in to comment.