mirror of
https://github.com/limine-bootloader/limine
synced 2024-11-26 10:29:54 +03:00
build: Fix up version.sh
This commit is contained in:
parent
3bb70dcbee
commit
4fd8fd10f9
2
.github/workflows/check.yml
vendored
2
.github/workflows/check.yml
vendored
@ -12,7 +12,7 @@ jobs:
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install dependencies
|
||||
run: sudo apt-get update && sudo apt-get install git build-essential nasm curl mtools -y
|
||||
run: sudo apt-get update && sudo apt-get install git build-essential autoconf nasm curl mtools -y
|
||||
|
||||
- name: Build the bootloader
|
||||
run: ./autogen.sh && make all
|
||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -23,7 +23,7 @@ jobs:
|
||||
run: echo "BRANCH_NAME=$(echo "$TAG_NAME" | grep -o 'v[0-9]\+\.')0-branch" >> $GITHUB_ENV
|
||||
|
||||
- name: Install dependencies
|
||||
run: sudo apt-get update && sudo apt-get install git build-essential nasm gcc-mingw-w64 gcc-multilib curl mtools -y
|
||||
run: sudo apt-get update && sudo apt-get install git build-essential autoconf nasm gcc-mingw-w64 gcc-multilib curl mtools -y
|
||||
|
||||
- name: Regenerate
|
||||
run: NOCONFIGURE=yes ./autogen.sh
|
||||
|
@ -1,3 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
cat version 2>/dev/null || ( git describe --exact-match --tags `git log -n1 --pretty='%h'` 2>/dev/null || git log -n1 --pretty='%h' )
|
||||
[ -f version ] || ( git describe --exact-match --tags $(git log -n1 --pretty='%h') 2>/dev/null || git log -n1 --pretty='%h' ) | xargs printf '%s'
|
||||
[ -f version ] && ( cat version 2>/dev/null ) | xargs printf '%s'
|
||||
|
Loading…
Reference in New Issue
Block a user