Skip to content

Commit

Permalink
ci(macos): tar artifact and add executable test
Browse files Browse the repository at this point in the history
  • Loading branch information
codeflorist committed Dec 7, 2023
1 parent 41f8849 commit 03608d6
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: macOS Intel Build
name: macOS X86-64 Build
on: [push, pull_request]

jobs:
Expand All @@ -18,6 +18,14 @@ jobs:
- name: Bundle libs
run: ./scripts/bundle-libs-macos.sh

- name: Test executable
run: |
cd dist
./dunedynasty
- name: Tar files
run: tar -cvf dist.tar dist

- name: Delete Old Artifacts
uses: actions/github-script@v6
id: artifact
Expand All @@ -29,7 +37,7 @@ jobs:
})
res.data.artifacts
.filter(({ name }) => name === 'macos-intel-build')
.filter(({ name }) => name === 'macos-x86-64-build')
.forEach(({ id }) => {
github.rest.actions.deleteArtifact({
owner: context.repo.owner,
Expand All @@ -41,5 +49,5 @@ jobs:
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: macos-intel-build
path: dist
name: macos-x86-64-build
path: dist.tar

0 comments on commit 03608d6

Please sign in to comment.