Skip to content

Commit

Permalink
Detail build
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Feb 9, 2024
1 parent 882ffc7 commit 73121e0
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 16 deletions.
46 changes: 30 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,35 +61,42 @@ jobs:
mv README.md dist
- name: Change permissions (Unix)
if: matrix.target == 'linux-arm64' || matrix.target == 'linux-x64' || matrix.target == 'macos-arm64' || matrix.target == 'macos-x64'
if: contains(['linux-arm64', 'linux-x64', 'macos-arm64', 'macos-x64'], matrix.target)
run: |
chmod -R 777 ./dist
- name: Tar files
- name: Tar dist (Unix)
if: contains(['linux-arm64', 'linux-x64', 'macos-arm64', 'macos-x64'], matrix.target)
run: |
tar czf eask_${{ env.VERSION }}_${{ matrix.target }}.tar -C dist .
tar czf ${{ matrix.target }}.tar.gz -C ./dist/ .
- name: Zipping dist (Windows)
if: contains(['win-arm64', 'win-x64'], matrix.target)
working-directory: dist
run: |
zip -r ${{ matrix.target }}.zip .
mv ${{ matrix.target }}.zip ../
- name: Uploading... (Unix)
if: matrix.target == 'linux-arm64' || matrix.target == 'linux-x64' || matrix.target == 'macos-arm64' || matrix.target == 'macos-x64'
if: contains(['linux-arm64', 'linux-x64', 'macos-arm64', 'macos-x64'], matrix.target)
uses: actions/upload-artifact@v4
with:
name: eask_${{ env.VERSION }}_${{ matrix.target }}
path: eask_${{ env.VERSION }}_${{ matrix.target }}.tar
path: ${{ matrix.target }}.tar.gz

- name: Uploading... (Windows)
if: matrix.target == 'win-arm64' || matrix.target == 'win-x64'
if: contains(['win-arm64', 'win-x64'], matrix.target)
uses: actions/upload-artifact@v4
with:
name: eask_${{ env.VERSION }}_${{ matrix.target }}
path: dist
path: ${{ matrix.target }}.zip

- name: Zipping dist
working-directory: dist
run: |
zip -r ${{ matrix.target }}.zip .
mv ${{ matrix.target }}.zip ../
- name: Move tar to HOME (Unix)
if: contains(['linux-arm64', 'linux-x64', 'macos-arm64', 'macos-x64'], matrix.target)
run: mv ${{ matrix.target }}.tar.gz ~/

- name: Move zip to HOME
- name: Move zip to HOME (Windows)
if: contains(['win-arm64', 'win-x64'], matrix.target)
run: mv ${{ matrix.target }}.zip ~/

- name: Checkout binaries repository
Expand All @@ -101,9 +108,16 @@ jobs:

- name: Clean up previous binaires
continue-on-error: true
run: rm -rf eask/${{ matrix.target }}.zip
run: |
rm -rf eask/${{ matrix.target }}.zip
rm -rf eask/${{ matrix.target }}.tar.gz
- name: Move binaires to repository (Unix)
if: contains(['linux-arm64', 'linux-x64', 'macos-arm64', 'macos-x64'], matrix.target)
run: mv ~/${{ matrix.target }}.tar.gz ./

- name: Move binaires to repository
- name: Move binaires to repository (Windows)
if: contains(['win-arm64', 'win-x64'], matrix.target)
run: mv ~/${{ matrix.target }}.zip ./

- name: Set git config
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,6 @@ dist/
# packaging
*-autoloads.el
*-pkg.el
*.zip
*.tar
*.tar.gz

0 comments on commit 73121e0

Please sign in to comment.