-
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.
- Loading branch information
Showing
2 changed files
with
10 additions
and
6 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 |
---|---|---|
|
@@ -43,14 +43,19 @@ jobs: | |
run: | | ||
mkdir dist | ||
cabal install exe:gcwdr-exe --install-method=copy --overwrite-policy=always --installdir=dist | ||
- if: matrix.os == 'windows-latest' | ||
name: Set extension to .exe on Windows | ||
run: echo "EXT=.exe" >> $GITHUB_ENV | ||
name: Set Windows binary path name | ||
run: | | ||
chcp 65001 | ||
mv ./dist/gcwdr-exe.exe ./dist/gcwdr-${{ runner.os }}-ghc-${{ matrix.ghc }}.exe | ||
echo "BINARY_PATH=./dist/gcwdr-${{ runner.os }}-ghc-${{ matrix.ghc }}.exe" >> $env:GITHUB_ENV | ||
- name: Set binary path name | ||
- if: matrix.os != 'windows-latest' | ||
name: Set Unix binary path name | ||
run: | | ||
mv ./dist/gcwdr-exe${{ env.EXT }} ./dist/gcwdr-${{ runner.os }}-ghc-${{ matrix.ghc }}${{ env.EXT }} | ||
echo "BINARY_PATH=./dist/gcwdr-${{ runner.os }}-ghc-${{ matrix.ghc }}${{ env.EXT }}" >> $GITHUB_ENV | ||
mv ./dist/gcwdr-exe ./dist/gcwdr-${{ runner.os }}-ghc-${{ matrix.ghc }} | ||
echo "BINARY_PATH=./dist/gcwdr-${{ runner.os }}-ghc-${{ matrix.ghc }}" >> $GITHUB_ENV | ||
- name: Compress binary | ||
uses: svenstaro/[email protected] | ||
|
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