Skip to content

Commit

Permalink
prepare to merge all
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Mar 11, 2023
1 parent d27776c commit 6c8573f
Showing 1 changed file with 26 additions and 13 deletions.
39 changes: 26 additions & 13 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,18 @@ jobs:
make clean
make AR=c++ EXTRALIB="-static-libstdc++ -static-libgcc -Wl,-Bdynamic -lOpenCL -Wl,-Bstatic -lm -lz"
ldd bin/mmc
- name: Upload mmclab package
if: ${{ matrix.os == 'ubuntu-20.04' }}
uses: actions/upload-artifact@v3
with:
name: mmclab-linux-x64_64-${{ github.ref_name }}
path: mmclab
- name: Create package folder
run: |
mkdir packages
- name: Zip mmclab
run: |
zip -FSr --symlink packages/mmclab-linux-x64_64-${{ github.ref_name }}-${{ matrix.os }}.zip mmclab
zip -FSr --symlink packages/mmclab-linux-x64_64-${{ github.ref_name }}.zip mmclab
- name: Upload mmclab package
if: ${{ matrix.os == 'ubuntu-20.04' }}
uses: actions/upload-artifact@v3
with:
name: mmc
path: packages/mmclab-linux-x64_64-${{ github.ref_name }}.zip
- name: Prepare mmc package
run: |
mv src/bin .
Expand All @@ -62,17 +62,30 @@ jobs:
cd src/bin
ln -s ../../bin/mmc .
cd ../../
- name: Zip mmc
run: |
zip -FSr --symlink packages/mmc-linux-x64_64-${{ github.ref_name }}.zip . -x 'packages*'
- name: Upload mmc package
if: ${{ matrix.os == 'ubuntu-20.04' }}
uses: actions/upload-artifact@v3
with:
name: mmc-linux-x64_64-${{ github.ref_name }}
path: .
- name: Zip mmc
run: |
zip -FSr --symlink packages/mmc-linux-x64_64-${{ github.ref_name }}-${{ matrix.os }}.zip . -x 'packages*'
name: mmc
path: packages/mmc-linux-x64_64-${{ github.ref_name }}.zip

upload_package:
needs: build_linux
runs-on: ubuntu-20.04
if: ${{ github.repository_owner == 'fangq' && github.event_name != 'pull_request'}}
steps:
- name: Download mmclab
uses: actions/download-artifact@v3
with:
name: mmc
path: packages
- name: Display structure of downloaded files
run: ls -R packages
- name: Copy package to server
if: ${{ matrix.os == 'ubuntu-20.04' && github.repository_owner == 'fangq' && github.event_name != 'pull_request'}}
if: ${{ github.repository_owner == 'fangq' && github.event_name != 'pull_request'}}
uses: wlixcc/[email protected]
with:
server: ${{ secrets.MCX_SERVER }}
Expand Down

0 comments on commit 6c8573f

Please sign in to comment.