Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
frankyeh authored Feb 7, 2025
1 parent d0b49f9 commit 188d4e2
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ on:

jobs:

linux-build:
linux-build-cpu:
if: ${{ github.event.inputs.build_linux == 'true' }}
strategy:
matrix:
Expand All @@ -54,6 +54,40 @@ jobs:
file: build_packages/${{ matrix.os }}/Dockerfile
push: false
outputs: dsi-studio
- name: Packaging
run: |
zip -r dsi_studio_${{ matrix.os }}_cpu.zip dsi-studio
- name: Create Release
env:
GH_TOKEN: ${{ secrets.DSISTUDIO_TOKEN }}
run: |
gh release upload ${{ github.event.inputs.tag }} *.zip --clobber --repo frankyeh/DSI-Studio
linux-build-cuda:
if: ${{ github.event.inputs.build_linux == 'true' }}
strategy:
matrix:
os: [ubuntu2404,ubuntu2204,ubuntu2004]
fail-fast: false
runs-on: ubuntu-20.04
steps:
- name: Download Build
run: |
git clone https://x-access-token:${{ secrets.DSISTUDIO_TOKEN }}@github.com/frankyeh/DSI-Studio-Build.git
mv DSI-Studio-Build/build_packages .
- name: Set up QEMU
uses: docker/[email protected]
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Build and push
uses: docker/[email protected]
with:
context: .
build-args: |
DSISTUDIO_TOKEN=${{ secrets.DSISTUDIO_TOKEN }}
file: build_packages/${{ matrix.os }}/Dockerfile_cuda
push: false
outputs: dsi-studio
- name: Packaging
run: |
zip -r dsi_studio_${{ matrix.os }}.zip dsi-studio
Expand All @@ -63,6 +97,7 @@ jobs:
run: |
gh release upload ${{ github.event.inputs.tag }} *.zip --clobber --repo frankyeh/DSI-Studio
macos-build-qt6:
if: ${{ github.event.inputs.build_mac == 'true' }}
strategy:
Expand Down

0 comments on commit 188d4e2

Please sign in to comment.