Skip to content

Commit

Permalink
Update workflow (#144)
Browse files Browse the repository at this point in the history
* workflow change

* workflow change

* workflow change

* add files

* revert many workflow changes

* revert many workflow changes

* case statement for target windows

* case statement for target windows

* do not fail all builds if one in the matrix fails

* nice little space

* match variable names

* misplaced quotes?

* syntax

* Necessary

* proper conditional

* even more correct conditional syntax

Co-authored-by: Cody Heimberger <certifiedloud@gmail.com>
  • Loading branch information
alexhallam and certifiedloud authored Jul 26, 2022
1 parent 20318ac commit e996be5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
# Build static releases with PCRE2.
PCRE2_SYS_STATIC: 1
strategy:
fail-fast: false
matrix:
build: [linux, linux-arm, macos, win-msvc, win-gnu, win32-msvc]
include:
Expand All @@ -96,7 +97,7 @@ jobs:
rust: nightly-x86_64-gnu
target: x86_64-pc-windows-gnu
- build: win32-msvc
os: ubuntu-18.04
os: windows-2019
rust: nightly
target: i686-pc-windows-msvc

Expand Down Expand Up @@ -157,18 +158,20 @@ jobs:
- name: Build archive
shell: bash
run: |
outdir="$(ci/cargo-out-dir "${{ env.TARGET_DIR }}")"
staging="tidy-viewer-${{ needs.create-release.outputs.tidy-viewer_version }}-${{ matrix.target }}"
#outdir="(ci/cargo-out-dir ${{ env.TARGET_DIR }})"
staging="tidy-viewer-${{ needs.create-release.outputs.tv_version }}-${{ matrix.target }}"
mkdir -p "$staging"/{complete,doc}
cp {README.md,UNLICENSE} "$staging/"
#cp CHANGELOG.md "$staging/doc/"
if [ "${{ matrix.os }}" = "windows-2019" ]; then
if [ "${{ matrix.target }}" = "i686-pc-windows-msvc" ] || [ "${{ matrix.target }}" = "x86_64-pc-windows-gnu" ] || [ "${{ matrix.target }}" = "x86_64-pc-windows-msvc" ]; then
echo "Target is Windows Based"
cp "target/${{ matrix.target }}/release/tidy-viewer.exe" "$staging/"
7z a "$staging.zip" "$staging"
echo "ASSET=$staging.zip" >> $GITHUB_ENV
else
echo "Target is not Windows Based"
cp "target/${{ matrix.target }}/release/tidy-viewer" "$staging/"
tar czf "$staging.tar.gz" "$staging"
echo "ASSET=$staging.tar.gz" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion ci/ubuntu-install-packages
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
asciidoctor \
zsh xz-utils liblz4-tool musl-tools
zsh xz-utils liblz4-tool musl-tools

0 comments on commit e996be5

Please sign in to comment.