Skip to content

Commit

Permalink
mod: actions yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zengkaiwen committed Sep 2, 2023
1 parent 2733bb3 commit f6c5731
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ jobs:
build:
strategy:
matrix:
build: [macos]
build: [macos, windows]
include:
- build: macos
os: macos-latest
archive-name: darwin
- build: windows
os: windows-latest
archive-name: windows

permissions:
contents: write
Expand All @@ -38,7 +41,11 @@ jobs:
CGO_ENABLED: 1

- name: Prepare Packaging
if: matrix.build == 'macos'
run: tar zcvf copy2file-${{ matrix.archive-name }}.tar.gz copy2file LICENSE
- name: Prepare Packaging
if: matrix.build == 'windows'
run: tar zcvf copy2file-${{ matrix.archive-name }}.tar.gz copy2file.exe file2clip.exe LICENSE
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit f6c5731

Please sign in to comment.