-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
subtitleswindow builds for windows with CUDA (not checked, yet)
- Loading branch information
Showing
6 changed files
with
169 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: build | ||
on: [workflow_call] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-24.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
target: | ||
- name: ENABLE_CUDA=true stt-linux-amd64 | ||
artifact: stt-linux-amd64-cuda | ||
- name: stt-linux-amd64 | ||
artifact: stt-linux-amd64-cpu | ||
- name: ENABLE_CUDA=true sttd-linux-amd64 | ||
artifact: sttd-linux-amd64-cuda | ||
- name: sttd-linux-amd64 | ||
artifact: sttd-linux-amd64-cpu | ||
- name: ENABLE_CUDA=true subtitleswindow-linux-amd64 | ||
artifact: subtitleswindow-linux-amd64-cuda | ||
- name: subtitleswindow-linux-amd64 | ||
artifact: subtitleswindow-linux-amd64-cpu | ||
- name: ENABLE_CUDA=true subtitleswindow-windows-amd64 | ||
artifact: subtitleswindow-windows-amd64-cuda | ||
- name: subtitleswindow-windows-amd64 | ||
artifact: subtitleswindow-windows-amd64-cpu | ||
name: build | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: setup go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.23' | ||
check-latest: true | ||
- name: add ffmpeg7 repo | ||
run: sudo add-apt-repository -y ppa:ubuntuhandbook1/ffmpeg7 | ||
- name: add nvidia repo | ||
run: | | ||
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb && \ | ||
sudo dpkg -i cuda-keyring_1.1-1_all.deb && \ | ||
sudo apt-get update \ | ||
- name: install fyne | ||
run: go install fyne.io/fyne/v2/cmd/fyne@latest | ||
- name: install libtinfo5 | ||
run: | | ||
wget http://security.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.1_amd64.deb && \ | ||
sudo apt install ./libtinfo5_6.3-2ubuntu0.1_amd64.deb | ||
- name: apt install | ||
run: | | ||
sudo apt install -fy \ | ||
libavcodec-dev \ | ||
libavformat-dev \ | ||
libavfilter-dev \ | ||
libavdevice-dev \ | ||
libswscale-dev \ | ||
libsrt-openssl-dev \ | ||
libssl-dev \ | ||
libasound2-dev \ | ||
libxxf86vm-dev \ | ||
make \ | ||
cmake \ | ||
nvidia-cuda-toolkit \ | ||
cuda-toolkit-12-2 \ | ||
libxcursor-dev \ | ||
libxrandr-dev \ | ||
libxinerama-dev \ | ||
libxi-dev \ | ||
gcc-mingw-w64-x86-64-win32 \ | ||
g++-mingw-w64-x86-64-win32 \ | ||
- name: apt clean | ||
run: sudo apt clean | ||
- name: make ${{ matrix.target.name }} | ||
run: make ${{ matrix.target.name }} INSTALL_DEST=build/${{ matrix.target.artifact }} | ||
- name: upload-artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.target.artifact }} | ||
path: build/${{ matrix.target.artifact }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: rolling-release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- test/ci | ||
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/build.yaml | ||
rolling-release: | ||
name: rolling-release | ||
needs: [build] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: download stt-linux-amd64-cuda | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: stt-linux-amd64-cuda | ||
- name: download stt-linux-amd64 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: stt-linux-amd64 | ||
- name: download sttd-linux-amd64-cuda | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: sttd-linux-amd64-cuda | ||
- name: download sttd-linux-amd64 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: sttd-linux-amd64 | ||
- name: download subtitleswindow-linux-amd64 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: subtitleswindow-linux-amd64 | ||
- name: download subtitleswindow-linux-amd64-cuda | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: subtitleswindow-linux-amd64-cuda | ||
- name: download subtitleswindow-windows-amd64 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: subtitleswindow-windows-amd64 | ||
- name: get the timestamp | ||
id: date | ||
run: echo "::set-output name=date::$(date +'%Y-%m-%d_%H%M%S')" | ||
- uses: "marvinpinto/action-automatic-releases@latest" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
prerelease: true | ||
automatic_release_tag: unstable-${{ steps.date.outputs.date }} | ||
files: | | ||
stt-linux-amd64-cuda | ||
stt-linux-amd64 | ||
sttd-linux-amd64-cuda | ||
sttd-linux-amd64 | ||
subtitleswindow-linux-amd64-cuda | ||
subtitleswindow-linux-amd64 | ||
subtitleswindow-windows-amd64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.