Skip to content

fixes ci #341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
May 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ on:
push:
tags:
- 'v*' # "v1.2.3"
branches:
- master
# branches: #Dont push to master the binaries as GH Actions will return an Error 403: Resource not accessible by integration
# - master
paths-ignore: ['media/**', 'docs/**', '**/*.md']
pull_request:
paths-ignore: ['media/**', 'docs/**', '**/*.md']
workflow_dispatch:
# pull_request:
# paths-ignore: ['media/**', 'docs/**', '**/*.md']
workflow_dispatch:
jobs:
build:
strategy:
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
include:
- target:
os: linux
builder: ubuntu-20.04
builder: ubuntu-22.04
- target:
os: macos
builder: macos-14
Expand All @@ -81,7 +81,7 @@ jobs:
runs-on: ${{ matrix.builder }}
steps:
- name: Setup Build
if: matrix.builder == 'ubuntu-20.04'
if: matrix.builder == 'ubuntu-22.04'
run: |
sudo apt install gcc make gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu \
gcc-i686-linux-gnu binutils-i686-linux-gnu \
Expand Down Expand Up @@ -202,14 +202,20 @@ jobs:
- name: Download artefacts
uses: actions/download-artifact@v4

- name: Get version from tag
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT

- uses: ncipollo/release-action@v1
with:
name: Latest Nimlangserver Binaries
name: "Nimlangserver ${{ steps.get_version.outputs.VERSION }}"
artifacts: "*/*"
allowUpdates: true
makeLatest: true
prerelease: true
tag: latest
prerelease: false
tag: ${{ steps.get_version.outputs.VERSION }}
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true

- name: Delete artefacts
uses: geekyeggo/delete-artifact@v5
Expand Down