all repos — min @ 54b66c8d3bbd0b9f5dbc65e037ad1fe85ea22420

A small but practical concatenative programming language.

Update add-artifacts-to-current-release.yml
Fabio Cevasco h3rald@h3rald.com
Sat, 26 Oct 2024 21:44:36 +0200
commit

54b66c8d3bbd0b9f5dbc65e037ad1fe85ea22420

parent

963c9a0a01ee9f3e578b229af5d8ce3317eb9087

1 files changed, 7 insertions(+), 7 deletions(-)

jump to
M .github/workflows/add-artifacts-to-current-release.yml.github/workflows/add-artifacts-to-current-release.yml

@@ -14,7 +14,7 @@ matrix:

os: - ubuntu-latest - macos-13 - - windows-latest + - windows-19 env: CHOOSENIM_CHOOSE_VERSION: stable

@@ -30,7 +30,7 @@

# Detects OS and provide Nim-friendly OS identifiers - name: Detect current OS id: os - run: echo "os=${{matrix.os == 'ubuntu-latest' && 'linux' || matrix.os == 'macos-13' && 'macosx' || matrix.os == 'windows-latest' && 'windows'}}" >> $GITHUB_OUTPUT + run: echo "os=${{matrix.os == 'ubuntu-latest' && 'linux' || matrix.os == 'macos-13' && 'macosx' || matrix.os == 'windows-19' && 'windows'}}" >> $GITHUB_OUTPUT # Checks out the repository - uses: actions/checkout@v2

@@ -43,7 +43,7 @@

# Sets path (Windows) - name: Update %PATH% run: echo "${HOME}/.nimble/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - if: matrix.os == 'windows-latest' + if: matrix.os == 'windows-19' # Installs libraries - name: install musl-gcc

@@ -51,7 +51,7 @@ run: sudo apt-get install -y musl-tools

if: matrix.os == 'ubuntu-latest' - name: Setup Msys2 - if: matrix.os == 'windows-latest' + if: matrix.os == 'windows-19' uses: msys2/setup-msys2@v2 with: msystem: MINGW64

@@ -85,7 +85,7 @@ # Build for Windows

- name: Build (Windows) shell: msys2 {0} run: nimble build -v -y -d:release --mm:refc --opt:size -d:ssl --gcc.exe:x86_64-w64-mingw32-gcc --gcc.linkerexe:x86_64-w64-mingw32-gcc min - if: matrix.os == 'windows-latest' + if: matrix.os == 'windows-19' # UPX compress (Linux) - name: UPX

@@ -103,7 +103,7 @@ with:

files: | min.exe args: --best --force - if: matrix.os == 'windows-latest' + if: matrix.os == 'windows-19' # Retrieve ID and Name of the current (draft) release - name: "Get current release"

@@ -122,7 +122,7 @@

# Package the resulting Windows binary - name: Create artifact (Windows) run: Compress-Archive -Path min.exe -DestinationPath min_${{steps.current-release.outputs.tag_name}}_windows_x64.zip - if: matrix.os == 'windows-latest' + if: matrix.os == 'windows-19' # Upload artifacts to current draft release - name: "Upload to current release"