Skip to content

Commit

Permalink
update windows cuda ci
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoa-xu committed Jun 14, 2024
1 parent 71a35be commit d4405c2
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/windows-precompile-cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,38 +105,6 @@ jobs:
sha256sum "${PKG_NAME}.tar.gz" | tee "${PKG_NAME}.tar.gz.sha256"
mv "${TMP_INCLUDE_DIR}" "${PRIV_DIR}/include"
- name: Mix compile for Gleam (experimental)
shell: bash
run: |
cd C:/evision
export GLEAM_EVISION=true
rm -f _build/${{ env.MIX_ENV }}/lib/evision/priv/evision.so
mix compile
- name: Create precompiled library for Gleam (experimental)
shell: bash
run: |
export RUNNER_DIR=`pwd`
cd C:/evision
export PKG_NAME=gleam_evision-nif_${{ matrix.pair.NIF_VERSION }}-x86_64-windows-msvc-contrib-cuda${{ matrix.pair.cuda_id }}-${GITHUB_REF##*/v}
mkdir -p "${PKG_NAME}"
export PRIV_DIR="$(pwd)/_build/${MIX_ENV}/lib/evision/priv"
export TMP_INCLUDE_DIR="$(pwd)/include"
mv "${PRIV_DIR}/include" "${TMP_INCLUDE_DIR}"
cp -a "${PRIV_DIR}" "${PKG_NAME}"
cp -a gleam_src "${PKG_NAME}/gleam_generated"
cp -a src/evision_highgui.erl "${PKG_NAME}/gleam_generated/"
cp -a src/evision_internal_structurise.erl "${PKG_NAME}/gleam_generated/"
cp -a src/evision_windows_fix.erl "${PKG_NAME}/gleam_generated/"
tar -czf "${PKG_NAME}.tar.gz" "${PKG_NAME}"
rm -rf "${PKG_NAME}"
ls -lah "${PKG_NAME}.tar.gz"
mkdir -p "${RUNNER_DIR}/artifacts"
mv "${PKG_NAME}.tar.gz" "${RUNNER_DIR}/artifacts"
cd "${RUNNER_DIR}/artifacts"
sha256sum "${PKG_NAME}.tar.gz" | tee "${PKG_NAME}.tar.gz.sha256"
mv "${TMP_INCLUDE_DIR}" "${PRIV_DIR}/include"
- uses: softprops/action-gh-release@v2
with:
files: |
Expand Down

0 comments on commit d4405c2

Please sign in to comment.