Skip to content

Commit

Permalink
Update add-artifacts-to-current-releases.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
h3rald authored Oct 19, 2024
1 parent 28fed70 commit 4ec3faa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/add-artifacts-to-current-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
matrix:
os:
- ubuntu-latest
- macos-latest
- macos-13
- windows-latest

env:
Expand All @@ -30,7 +30,7 @@ jobs:
# Detects OS and provide Nim-friendly OS identifiers
- name: Detect current OS
id: os
run: echo "::set-output name=id::${{matrix.os == 'ubuntu-latest' && 'linux' || matrix.os == 'macos-latest' && 'macosx' || matrix.os == 'windows-latest' && 'windows'}}"
run: echo "::set-output name=id::${{matrix.os == 'ubuntu-latest' && 'linux' || matrix.os == 'macos-13' && 'macosx' || matrix.os == 'windows-latest' && 'windows'}}"

# Checks out the repository
- uses: actions/checkout@v2
Expand All @@ -43,7 +43,7 @@ jobs:
# Sets path (Linux, macOS)
- name: Update $PATH
run: echo "$HOME/.nimble/bin" >> $GITHUB_PATH
if: matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest'
if: matrix.os == 'macos-13' || matrix.os == 'ubuntu-latest'

# Sets path (Windows)
- name: Update %PATH%
Expand All @@ -67,7 +67,7 @@ jobs:
# Build for macOS/Windows
- name: Build (macOS, Windows)
run: nimble build -y -d:release --opt:size --mm:refc
if: matrix.os == 'macos-latest' || matrix.os == 'windows-latest'
if: matrix.os == 'macos-13' || matrix.os == 'windows-latest'

# UPX compress (*nix)
- name: UPX
Expand All @@ -76,7 +76,7 @@ jobs:
files: |
hastysite
args: --best --force
if: matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest'
if: matrix.os == 'macos-13' || matrix.os == 'ubuntu-latest'

# UPX compress (Windows)
- name: UPX
Expand All @@ -99,7 +99,7 @@ jobs:
# Package the resulting Linux/macOS binary
- name: Create artifact (Linux, macOS)
run: zip hastysite_${{steps.current-release.outputs.tag_name}}_${{steps.os.outputs.id}}_x64.zip hastysite
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-13'

# Package the resulting Windows binary
- name: Create artifact (Windows)
Expand Down

0 comments on commit 4ec3faa

Please sign in to comment.