Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoa-xu committed Jun 10, 2024
1 parent 9d645b6 commit af648ae
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 30 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/linux-precompile-cuda-gnu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
mkdir -p "${PKG_NAME}"
export PRIV_DIR="_build/${MIX_ENV}/lib/evision/priv"
rm -rf "${PRIV_DIR}/include"
mv "${PRIV_DIR}/include" /tmp/include
cp -a "${PRIV_DIR}" "${PKG_NAME}"
cp -a lib/generated "${PKG_NAME}/elixir_generated"
cp -a src/generated "${PKG_NAME}/erlang_generated"
Expand All @@ -117,6 +117,7 @@ jobs:
mv "${PKG_NAME}.tar.gz" artifacts
cd artifacts
sha256sum "${PKG_NAME}.tar.gz" | tee "${PKG_NAME}.tar.gz.sha256"
mv /tmp/include "${PRIV_DIR}/include"
- name: Upload precompiled library
uses: softprops/action-gh-release@v2
Expand All @@ -137,7 +138,7 @@ jobs:
mkdir -p "${PKG_NAME}"
export PRIV_DIR="_build/${MIX_ENV}/lib/evision/priv"
rm -rf "${PRIV_DIR}/include"
mv "${PRIV_DIR}/include" /tmp/include
cp -a "${PRIV_DIR}" "${PKG_NAME}"
cp -a gleam_src "${PKG_NAME}/gleam_generated"
tar -czf "${PKG_NAME}.tar.gz" "${PKG_NAME}"
Expand All @@ -147,6 +148,7 @@ jobs:
mv "${PKG_NAME}.tar.gz" artifacts
cd artifacts
sha256sum "${PKG_NAME}.tar.gz" | tee "${PKG_NAME}.tar.gz.sha256"
mv /tmp/include "${PRIV_DIR}/include"
- name: Upload precompiled library for gleam (experimental)
uses: softprops/action-gh-release@v2
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/linux-precompile-gnu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ jobs:
export PKG_NAME=evision-nif_${{ matrix.pair.NIF_VERSION }}-${{ matrix.pair.arch }}-${GITHUB_REF##*/v}
mkdir -p "${PKG_NAME}"
export PRIV_DIR="_build/${MIX_ENV}/lib/evision/priv"
rm -rf "${PRIV_DIR}/include"
mv "${PRIV_DIR}/include" /tmp/include
cp -a "${PRIV_DIR}" "${PKG_NAME}"
cp -a lib/generated "${PKG_NAME}/elixir_generated"
cp -a src/generated "${PKG_NAME}/erlang_generated"
Expand All @@ -167,6 +167,7 @@ jobs:
mv "${PKG_NAME}.tar.gz" artifacts
cd artifacts
sha256sum "${PKG_NAME}.tar.gz" | tee "${PKG_NAME}.tar.gz.sha256"
mv /tmp/include "${PRIV_DIR}/include"
- name: Mix compile (without contrib modules) for Gleam (experimental)
run: |
Expand All @@ -188,7 +189,7 @@ jobs:
export PKG_NAME=gleam_evision-nif_${{ matrix.pair.NIF_VERSION }}-${{ matrix.pair.arch }}-${GITHUB_REF##*/v}
mkdir -p "${PKG_NAME}"
export PRIV_DIR="_build/${MIX_ENV}/lib/evision/priv"
rm -rf "${PRIV_DIR}/include"
mv "${PRIV_DIR}/include" /tmp/include
cp -a "${PRIV_DIR}" "${PKG_NAME}"
cp -a gleam_src "${PKG_NAME}/gleam_generated"
tar -czf "${PKG_NAME}.tar.gz" "${PKG_NAME}"
Expand All @@ -198,6 +199,7 @@ jobs:
mv "${PKG_NAME}.tar.gz" artifacts
cd artifacts
sha256sum "${PKG_NAME}.tar.gz" | tee "${PKG_NAME}.tar.gz.sha256"
mv /tmp/include "${PRIV_DIR}/include"
- name: Compile OpenCV (with contrib modules)
run: |
Expand Down Expand Up @@ -236,7 +238,7 @@ jobs:
mkdir -p "${PKG_NAME}"
export PRIV_DIR="_build/${MIX_ENV}/lib/evision/priv"
rm -rf "${PRIV_DIR}/include"
mv "${PRIV_DIR}/include" /tmp/include
cp -a "${PRIV_DIR}" "${PKG_NAME}"
cp -a lib/generated "${PKG_NAME}/elixir_generated"
cp -a src/generated "${PKG_NAME}/erlang_generated"
Expand All @@ -247,6 +249,7 @@ jobs:
mv "${PKG_NAME}.tar.gz" artifacts
cd artifacts
sha256sum "${PKG_NAME}.tar.gz" | tee "${PKG_NAME}.tar.gz.sha256"
mv /tmp/include "${PRIV_DIR}/include"
- name: Mix compile (with contrib modules) for Gleam (experimental)
run: |
Expand All @@ -268,7 +271,7 @@ jobs:
mkdir -p "${PKG_NAME}"
export PRIV_DIR="_build/${MIX_ENV}/lib/evision/priv"
rm -rf "${PRIV_DIR}/include"
mv "${PRIV_DIR}/include" /tmp/include
cp -a "${PRIV_DIR}" "${PKG_NAME}"
cp -a gleam_src "${PKG_NAME}/gleam_generated"
tar -czf "${PKG_NAME}.tar.gz" "${PKG_NAME}"
Expand All @@ -278,6 +281,7 @@ jobs:
mv "${PKG_NAME}.tar.gz" artifacts
cd artifacts
sha256sum "${PKG_NAME}.tar.gz" | tee "${PKG_NAME}.tar.gz.sha256"
mv /tmp/include "${PRIV_DIR}/include"
- uses: softprops/action-gh-release@v2
with:
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/linux-precompile-manylinux2014-gnu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ jobs:
export PKG_NAME=evision-nif_${{ matrix.pair.NIF_VERSION }}-${{ matrix.pair.arch }}-${GITHUB_REF##*/v}
mkdir -p "${PKG_NAME}"
export PRIV_DIR="_build/${MIX_ENV}/lib/evision/priv"
sudo rm -rf "${PRIV_DIR}/include"
sudo mv "${PRIV_DIR}/include" /tmp/include
cp -a "${PRIV_DIR}" "${PKG_NAME}"
cp -a lib/generated "${PKG_NAME}/elixir_generated"
cp -a src/generated "${PKG_NAME}/erlang_generated"
Expand All @@ -119,6 +119,7 @@ jobs:
mv "${PKG_NAME}.tar.gz" artifacts
cd artifacts
sha256sum "${PKG_NAME}.tar.gz" | tee "${PKG_NAME}.tar.gz.sha256"
sudo mv /tmp/include "${PRIV_DIR}/include"
- name: Mix Compile (without contrib modules) for Gleam (experimental)
run: |
Expand All @@ -133,7 +134,7 @@ jobs:
export PKG_NAME=gleam_evision-nif_${{ matrix.pair.NIF_VERSION }}-${{ matrix.pair.arch }}-${GITHUB_REF##*/v}
mkdir -p "${PKG_NAME}"
export PRIV_DIR="_build/${MIX_ENV}/lib/evision/priv"
sudo rm -rf "${PRIV_DIR}/include"
sudo mv "${PRIV_DIR}/include" /tmp/include
cp -a "${PRIV_DIR}" "${PKG_NAME}"
cp -a gleam_src "${PKG_NAME}/gleam_generated"
tar -czf "${PKG_NAME}.tar.gz" "${PKG_NAME}"
Expand All @@ -143,6 +144,7 @@ jobs:
mv "${PKG_NAME}.tar.gz" artifacts
cd artifacts
sha256sum "${PKG_NAME}.tar.gz" | tee "${PKG_NAME}.tar.gz.sha256"
sudo mv /tmp/include "${PRIV_DIR}/include"
- name: Mix Compile (with contrib modules)
run: |
Expand All @@ -157,7 +159,7 @@ jobs:
export PKG_NAME=evision-nif_${{ matrix.pair.NIF_VERSION }}-${{ matrix.pair.arch }}-contrib-${GITHUB_REF##*/v}
mkdir -p "${PKG_NAME}"
export PRIV_DIR="_build/${MIX_ENV}/lib/evision/priv"
sudo rm -rf "${PRIV_DIR}/include"
sudo mv "${PRIV_DIR}/include" /tmp/include
cp -a "${PRIV_DIR}" "${PKG_NAME}"
cp -a lib/generated "${PKG_NAME}/elixir_generated"
cp -a src/generated "${PKG_NAME}/erlang_generated"
Expand All @@ -168,6 +170,7 @@ jobs:
mv "${PKG_NAME}.tar.gz" artifacts
cd artifacts
sha256sum "${PKG_NAME}.tar.gz" | tee "${PKG_NAME}.tar.gz.sha256"
sudo mv /tmp/include "${PRIV_DIR}/include"
- name: Mix Compile (with contrib modules) for Gleam (experimental)
run: |
Expand All @@ -182,7 +185,7 @@ jobs:
export PKG_NAME=gleam_evision-nif_${{ matrix.pair.NIF_VERSION }}-${{ matrix.pair.arch }}-contrib-${GITHUB_REF##*/v}
mkdir -p "${PKG_NAME}"
export PRIV_DIR="_build/${MIX_ENV}/lib/evision/priv"
sudo rm -rf "${PRIV_DIR}/include"
sudo mv "${PRIV_DIR}/include" /tmp/include
cp -a "${PRIV_DIR}" "${PKG_NAME}"
cp -a gleam_src "${PKG_NAME}/gleam_generated"
tar -czf "${PKG_NAME}.tar.gz" "${PKG_NAME}"
Expand All @@ -192,6 +195,7 @@ jobs:
mv "${PKG_NAME}.tar.gz" artifacts
cd artifacts
sha256sum "${PKG_NAME}.tar.gz" | tee "${PKG_NAME}.tar.gz.sha256"
sudo mv /tmp/include "${PRIV_DIR}/include"
- uses: softprops/action-gh-release@v2
with:
Expand Down
24 changes: 16 additions & 8 deletions .github/workflows/linux-precompile-musl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
export PKG_NAME=evision-nif_${{ matrix.pair.NIF_VERSION }}-x86_64-linux-musl-${GITHUB_REF##*/v}
mkdir -p "${PKG_NAME}"
export PRIV_DIR="_build/${MIX_ENV}/lib/evision/priv"
rm -rf "${PRIV_DIR}/include"
mv "${PRIV_DIR}/include" /tmp/include
cp -a "${PRIV_DIR}" "${PKG_NAME}"
cp -a lib/generated "${PKG_NAME}/elixir_generated"
cp -a src/generated "${PKG_NAME}/erlang_generated"
Expand All @@ -121,6 +121,7 @@ jobs:
mv "${PKG_NAME}.tar.gz" artifacts
cd artifacts
sha256sum "${PKG_NAME}.tar.gz" | tee "${PKG_NAME}.tar.gz.sha256"
mv /tmp/include "${PRIV_DIR}/include"
- name: Mix compile (without contrib modules) for Gleam (experimental)
run: |
Expand All @@ -138,7 +139,7 @@ jobs:
export PKG_NAME=gleam_evision-nif_${{ matrix.pair.NIF_VERSION }}-x86_64-linux-musl-${GITHUB_REF##*/v}
mkdir -p "${PKG_NAME}"
export PRIV_DIR="_build/${MIX_ENV}/lib/evision/priv"
rm -rf "${PRIV_DIR}/include"
mv "${PRIV_DIR}/include" /tmp/include
cp -a "${PRIV_DIR}" "${PKG_NAME}"
cp -a gleam_src "${PKG_NAME}/gleam_generated"
tar -czf "${PKG_NAME}.tar.gz" "${PKG_NAME}"
Expand All @@ -148,6 +149,7 @@ jobs:
mv "${PKG_NAME}.tar.gz" artifacts
cd artifacts
sha256sum "${PKG_NAME}.tar.gz" | tee "${PKG_NAME}.tar.gz.sha256"
mv /tmp/include "${PRIV_DIR}/include"
- name: Compile OpenCV (with contrib modules)
run: |
Expand All @@ -173,7 +175,7 @@ jobs:
export PKG_NAME=evision-nif_${{ matrix.pair.NIF_VERSION }}-x86_64-linux-musl-contrib-${GITHUB_REF##*/v}
mkdir -p "${PKG_NAME}"
export PRIV_DIR="_build/${MIX_ENV}/lib/evision/priv"
rm -rf "${PRIV_DIR}/include"
mv "${PRIV_DIR}/include" /tmp/include
cp -a "${PRIV_DIR}" "${PKG_NAME}"
cp -a lib/generated "${PKG_NAME}/elixir_generated"
cp -a src/generated "${PKG_NAME}/erlang_generated"
Expand All @@ -184,6 +186,7 @@ jobs:
mv "${PKG_NAME}.tar.gz" artifacts
cd artifacts
sha256sum "${PKG_NAME}.tar.gz" | tee "${PKG_NAME}.tar.gz.sha256"
mv /tmp/include "${PRIV_DIR}/include"
- name: Mix compile (with contrib modules) for Gleam (experimental)
run: |
Expand All @@ -199,7 +202,7 @@ jobs:
export PKG_NAME=gleam_evision-nif_${{ matrix.pair.NIF_VERSION }}-x86_64-linux-musl-contrib-${GITHUB_REF##*/v}
mkdir -p "${PKG_NAME}"
export PRIV_DIR="_build/${MIX_ENV}/lib/evision/priv"
rm -rf "${PRIV_DIR}/include"
mv "${PRIV_DIR}/include" /tmp/include
cp -a "${PRIV_DIR}" "${PKG_NAME}"
cp -a gleam_src/generated "${PKG_NAME}/gleam_generated"
tar -czf "${PKG_NAME}.tar.gz" "${PKG_NAME}"
Expand All @@ -209,6 +212,7 @@ jobs:
mv "${PKG_NAME}.tar.gz" artifacts
cd artifacts
sha256sum "${PKG_NAME}.tar.gz" | tee "${PKG_NAME}.tar.gz.sha256"
mv /tmp/include "${PRIV_DIR}/include"
- uses: softprops/action-gh-release@v2
with:
Expand Down Expand Up @@ -326,7 +330,7 @@ jobs:
export PKG_NAME=evision-nif_${{ matrix.pair.NIF_VERSION }}-${{ matrix.pair.arch }}-${GITHUB_REF##*/v}
mkdir -p "${PKG_NAME}"
export PRIV_DIR="_build/${MIX_ENV}/lib/evision/priv"
rm -rf "${PRIV_DIR}/include"
mv "${PRIV_DIR}/include" /tmp/include
cp -a "${PRIV_DIR}" "${PKG_NAME}"
cp -a lib/generated "${PKG_NAME}/elixir_generated"
cp -a src/generated "${PKG_NAME}/erlang_generated"
Expand All @@ -337,6 +341,7 @@ jobs:
mv "${PKG_NAME}.tar.gz" artifacts
cd artifacts
sha256sum "${PKG_NAME}.tar.gz" | tee "${PKG_NAME}.tar.gz.sha256"
mv /tmp/include "${PRIV_DIR}/include"
- name: Mix compile (without contrib modules) for Gleam (experimental)
run: |
Expand All @@ -357,7 +362,7 @@ jobs:
export PKG_NAME=gleam_evision-nif_${{ matrix.pair.NIF_VERSION }}-${{ matrix.pair.arch }}-${GITHUB_REF##*/v}
mkdir -p "${PKG_NAME}"
export PRIV_DIR="_build/${MIX_ENV}/lib/evision/priv"
rm -rf "${PRIV_DIR}/include"
mv "${PRIV_DIR}/include" /tmp/include
cp -a "${PRIV_DIR}" "${PKG_NAME}"
cp -a gleam_src "${PKG_NAME}/gleam_generated"
tar -czf "${PKG_NAME}.tar.gz" "${PKG_NAME}"
Expand All @@ -367,6 +372,7 @@ jobs:
mv "${PKG_NAME}.tar.gz" artifacts
cd artifacts
sha256sum "${PKG_NAME}.tar.gz" | tee "${PKG_NAME}.tar.gz.sha256"
mv /tmp/include "${PRIV_DIR}/include"
- name: Compile OpenCV (with contrib modules)
run: |
Expand Down Expand Up @@ -398,7 +404,7 @@ jobs:
export PKG_NAME=evision-nif_${{ matrix.pair.NIF_VERSION }}-${{ matrix.pair.arch }}-contrib-${GITHUB_REF##*/v}
mkdir -p "${PKG_NAME}"
export PRIV_DIR="_build/${MIX_ENV}/lib/evision/priv"
rm -rf "${PRIV_DIR}/include"
mv "${PRIV_DIR}/include" /tmp/include
cp -a "${PRIV_DIR}" "${PKG_NAME}"
cp -a lib/generated "${PKG_NAME}/elixir_generated"
cp -a src/generated "${PKG_NAME}/erlang_generated"
Expand All @@ -409,6 +415,7 @@ jobs:
mv "${PKG_NAME}.tar.gz" artifacts
cd artifacts
sha256sum "${PKG_NAME}.tar.gz" | tee "${PKG_NAME}.tar.gz.sha256"
mv /tmp/include "${PRIV_DIR}/include"
- name: Mix compile (with contrib modules) for Gleam (experimental)
run: |
Expand All @@ -428,7 +435,7 @@ jobs:
export PKG_NAME=gleam_evision-nif_${{ matrix.pair.NIF_VERSION }}-${{ matrix.pair.arch }}-contrib-${GITHUB_REF##*/v}
mkdir -p "${PKG_NAME}"
export PRIV_DIR="_build/${MIX_ENV}/lib/evision/priv"
rm -rf "${PRIV_DIR}/include"
mv "${PRIV_DIR}/include" /tmp/include
cp -a "${PRIV_DIR}" "${PKG_NAME}"
cp -a gleam_src "${PKG_NAME}/gleam_generated"
tar -czf "${PKG_NAME}.tar.gz" "${PKG_NAME}"
Expand All @@ -438,6 +445,7 @@ jobs:
mv "${PKG_NAME}.tar.gz" artifacts
cd artifacts
sha256sum "${PKG_NAME}.tar.gz" | tee "${PKG_NAME}.tar.gz.sha256"
mv /tmp/include "${PRIV_DIR}/include"
- uses: softprops/action-gh-release@v2
with:
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/macos-precompile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:
export PKG_NAME=evision-nif_${{ matrix.pair.NIF_VERSION }}-${{ matrix.pair.arch_name }}-apple-darwin-${GITHUB_REF##*/v}
mkdir -p "${PKG_NAME}"
export PRIV_DIR="_build/${MIX_ENV}/lib/evision/priv"
rm -rf "${PRIV_DIR}/include"
mv "${PRIV_DIR}/include" /tmp/include
cp -a "${PRIV_DIR}" "${PKG_NAME}"
cp -a lib/generated "${PKG_NAME}/elixir_generated"
cp -a src/generated "${PKG_NAME}/erlang_generated"
Expand All @@ -129,6 +129,7 @@ jobs:
mv "${PKG_NAME}.tar.gz" artifacts
cd artifacts
sha256sum "${PKG_NAME}.tar.gz" | tee "${PKG_NAME}.tar.gz.sha256"
mv /tmp/include "${PRIV_DIR}/include"
- name: Mix compile (without contrib modules) for Gleam (experimental)
run: |
Expand All @@ -151,7 +152,7 @@ jobs:
export PKG_NAME=gleam_evision-nif_${{ matrix.pair.NIF_VERSION }}-${{ matrix.pair.arch_name }}-apple-darwin-${GITHUB_REF##*/v}
mkdir -p "${PKG_NAME}"
export PRIV_DIR="_build/${MIX_ENV}/lib/evision/priv"
rm -rf "${PRIV_DIR}/include"
mv "${PRIV_DIR}/include" /tmp/include
cp -a "${PRIV_DIR}" "${PKG_NAME}"
cp -a gleam_src "${PKG_NAME}/gleam_generated"
tar -czf "${PKG_NAME}.tar.gz" "${PKG_NAME}"
Expand All @@ -161,6 +162,7 @@ jobs:
mv "${PKG_NAME}.tar.gz" artifacts
cd artifacts
sha256sum "${PKG_NAME}.tar.gz" | tee "${PKG_NAME}.tar.gz.sha256"
mv /tmp/include "${PRIV_DIR}/include"
- name: Compile OpenCV (with contrib modules)
run: |
Expand Down Expand Up @@ -197,7 +199,7 @@ jobs:
export PKG_NAME=evision-nif_${{ matrix.pair.NIF_VERSION }}-${{ matrix.pair.arch_name }}-apple-darwin-contrib-${GITHUB_REF##*/v}
mkdir -p "${PKG_NAME}"
export PRIV_DIR="_build/${MIX_ENV}/lib/evision/priv"
rm -rf "${PRIV_DIR}/include"
mv "${PRIV_DIR}/include" /tmp/include
cp -a "${PRIV_DIR}" "${PKG_NAME}"
cp -a lib/generated "${PKG_NAME}/elixir_generated"
cp -a src/generated "${PKG_NAME}/erlang_generated"
Expand All @@ -208,6 +210,7 @@ jobs:
mv "${PKG_NAME}.tar.gz" artifacts
cd artifacts
sha256sum "${PKG_NAME}.tar.gz" | tee "${PKG_NAME}.tar.gz.sha256"
mv /tmp/include "${PRIV_DIR}/include"
- name: Mix compile (with contrib modules) for Gleam (experimental)
run: |
Expand All @@ -229,7 +232,7 @@ jobs:
export PKG_NAME=gleam_evision-nif_${{ matrix.pair.NIF_VERSION }}-${{ matrix.pair.arch_name }}-apple-darwin-contrib-${GITHUB_REF##*/v}
mkdir -p "${PKG_NAME}"
export PRIV_DIR="_build/${MIX_ENV}/lib/evision/priv"
rm -rf "${PRIV_DIR}/include"
mv "${PRIV_DIR}/include" /tmp/include
cp -a "${PRIV_DIR}" "${PKG_NAME}"
cp -a gleam_src "${PKG_NAME}/gleam_generated"
tar -czf "${PKG_NAME}.tar.gz" "${PKG_NAME}"
Expand All @@ -239,6 +242,7 @@ jobs:
mv "${PKG_NAME}.tar.gz" artifacts
cd artifacts
sha256sum "${PKG_NAME}.tar.gz" | tee "${PKG_NAME}.tar.gz.sha256"
mv /tmp/include "${PRIV_DIR}/include"
- uses: softprops/action-gh-release@v2
with:
Expand Down
Loading

0 comments on commit af648ae

Please sign in to comment.