Skip to content

Commit

Permalink
Fix Install step
Browse files Browse the repository at this point in the history
  • Loading branch information
Kleidukos committed Jul 21, 2024
1 parent cde4a7b commit eb42351
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ jobs:
run: cabal test --project-file=cabal.release.project all

- name: Install
run: cabal install --project-file=cabal.release.project --installdir=distribution --install-method=copy
run: |
bin=$(cabal -v0 --project-file=cabal.static.project list-bin get-tested)
mkdir distribution
cp ${bin} distribution/get-tested
- name: File type
run: file distribution/get-tested
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ jobs:
run: cabal test --project-file=cabal.release.project all

- name: Install
run: cabal install --project-file=cabal.release.project --installdir=distribution --install-method=copy
run: |
bin=$(cabal -v0 --project-file=cabal.static.project list-bin get-tested)
mkdir distribution
cp ${bin} distribution/get-tested
- name: File type
run: file distribution/get-tested
Expand All @@ -74,7 +77,7 @@ jobs:
FILE=$(basename $GETTESTED_EXEC)
version=$(./distribution/get-tested --version)
GETTESTED_EXEC_TAR=get-tested-${version}-${{ runner.os }}-${{ env.ARCH }}.tar.gz
tar -czvf $GETTESTED_EXEC_TAR -C $DIR distribution/get-tested
tar -czvf $GETTESTED_EXEC_TAR -C $DIR $FILE
echo GETTESTED_EXEC_TAR=$GETTESTED_EXEC_TAR >> $GITHUB_ENV
- name: Upload the get-tested executable
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -144,7 +147,7 @@ jobs:
FILE=$(basename $GETTESTED_EXEC)
version=$(./distribution/get-tested --version)
GETTESTED_EXEC_TAR=get-tested-${version}-${{ runner.os }}-static-${{ env.ARCH }}.tar.gz
tar -czvf $GETTESTED_EXEC_TAR -C $DIR distribution/get-tested
tar -czvf $GETTESTED_EXEC_TAR -C $DIR $FILE
echo GETTESTED_EXEC_TAR=$GETTESTED_EXEC_TAR >> $GITHUB_ENV
- name: Upload get-tested executable to workflow artifacts
Expand Down

0 comments on commit eb42351

Please sign in to comment.