Skip to content

Commit

Permalink
ci: precompile: hardcode env var
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoa-xu committed Mar 24, 2022
1 parent 728dce5 commit c57ff01
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/linux-precompile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ on:
jobs:
mix_test:
runs-on: ubuntu-20.04
env:
ELIXIR: 1.13.3
OTP: 24.3
MIX_ENV: dev
EVISION_VERSION: 0.1.0-dev
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -52,9 +47,9 @@ jobs:
run: |
mix deps.get
mix compile
export PKG_NAME=evision-linux-${{ matrix.pair.arch_name }}-${EVISION_VERSION}
export PKG_NAME=evision-linux-${{ matrix.pair.arch_name }}-0.1.0-dev
mkdir -p "${PKG_NAME}"
cp -a _build/${MIX_ENV}/lib/evision/priv "${PKG_NAME}"
cp -a _build/dev/lib/evision/priv "${PKG_NAME}"
cp -a lib/generated "${PKG_NAME}"
tar -czf "${PKG_NAME}.tar.gz" "${PKG_NAME}"
rm -rf "${PKG_NAME}"
Expand All @@ -76,10 +71,6 @@ jobs:
dockerRunArgs: |
--volume "${PWD}/artifacts:/artifacts"
env: |
EVISION_VERSION: ${EVISION_VERSION}
MIX_ENV: ${MIX_ENV}
shell: /bin/bash
install: |
apt-get update -q -y
Expand All @@ -98,9 +89,9 @@ jobs:
export PATH="/usr/local/bin:$(pwd)/Precompiled/bin:${PATH}"
mix deps.get
mix compile
export PKG_NAME=evision-linux-${{ matrix.pair.arch_name }}-${EVISION_VERSION}
export PKG_NAME=evision-linux-${{ matrix.pair.arch_name }}-0.1.0-dev
mkdir -p "${PKG_NAME}"
cp -a _build/${MIX_ENV}/lib/evision/priv "${PKG_NAME}"
cp -a _build/dev/lib/evision/priv "${PKG_NAME}"
cp -a lib/generated "${PKG_NAME}"
tar -czf "${PKG_NAME}.tar.gz" "${PKG_NAME}"
rm -rf "${PKG_NAME}"
Expand Down

0 comments on commit c57ff01

Please sign in to comment.