mirror of
https://github.com/anrieff/libcpuid
synced 2025-07-02 14:04:15 +00:00
CI: update actions to Node16
All actions using Node12 are deprecated: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12
This commit is contained in:
parent
e5b5f2e019
commit
9ec39e1312
3 changed files with 16 additions and 21 deletions
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
@ -11,7 +11,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Get Git tag
|
- name: Get Git tag
|
||||||
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
|
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
|
||||||
|
|
4
.github/workflows/unix.yml
vendored
4
.github/workflows/unix.yml
vendored
|
@ -21,7 +21,7 @@ jobs:
|
||||||
OS_NAME: ${{ matrix.os.name }}
|
OS_NAME: ${{ matrix.os.name }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Generate build system
|
- name: Generate build system
|
||||||
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="" -DLIBCPUID_TESTS:BOOL=ON
|
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="" -DLIBCPUID_TESTS:BOOL=ON
|
||||||
|
@ -43,7 +43,7 @@ jobs:
|
||||||
DESTDIR: ${{ github.workspace }}/installdir
|
DESTDIR: ${{ github.workspace }}/installdir
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.os.name }}
|
name: ${{ matrix.os.name }}
|
||||||
path: installdir/*
|
path: installdir/*
|
||||||
|
|
31
.github/workflows/windows.yml
vendored
31
.github/workflows/windows.yml
vendored
|
@ -25,10 +25,10 @@ jobs:
|
||||||
PTS: v142
|
PTS: v142
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Add MSBuild to PATH
|
- name: Add MSBuild to PATH
|
||||||
uses: microsoft/setup-msbuild@v1.0.2
|
uses: microsoft/setup-msbuild@v1.1
|
||||||
|
|
||||||
- name: Build with MSBuild
|
- name: Build with MSBuild
|
||||||
run: |
|
run: |
|
||||||
|
@ -38,24 +38,19 @@ jobs:
|
||||||
/property:PlatformToolset=$Env:PTS `
|
/property:PlatformToolset=$Env:PTS `
|
||||||
/verbosity:normal
|
/verbosity:normal
|
||||||
|
|
||||||
- name: Write Readme.win
|
|
||||||
uses: DamianReeves/write-file-action@master
|
|
||||||
with:
|
|
||||||
path: Readme.win
|
|
||||||
contents: |
|
|
||||||
The binaries here are compiled with Microsoft Visual C++. The following configurations are built:
|
|
||||||
|
|
||||||
Debug\ - no optimizations, using the static debug C runtime (/MTd)
|
|
||||||
Release\ - optimizations on, using the static C runtime (/MT)
|
|
||||||
ReleaseDLL\ - the library is compiled in a .dll (libcpuid.dll), which you'd need to ship alongside your executable. Static C runtime.
|
|
||||||
|
|
||||||
Operating system and compiler version:
|
|
||||||
write-mode: overwrite
|
|
||||||
|
|
||||||
- name: Prepate artifacts
|
- name: Prepate artifacts
|
||||||
run: |
|
run: |
|
||||||
mkdir -pv "$DESTDIR/"{bin,include,lib}
|
mkdir -pv "$DESTDIR/"{bin,include,lib}
|
||||||
echo -e "$(cat Readme.win)\n$(wmic os get caption,version -value | sed '/^[[:space:]]*$/d')\n$(MSBuild.exe -version | sed '/^[[:space:]]*$/d')" > "$DESTDIR/Readme.win"
|
cat <<EOF > "$DESTDIR/Readme.win"
|
||||||
|
The binaries here are compiled with Microsoft Visual C++. The following configurations are built:
|
||||||
|
|
||||||
|
Debug\ - no optimizations, using the static debug C runtime (/MTd)
|
||||||
|
Release\ - optimizations on, using the static C runtime (/MT)
|
||||||
|
ReleaseDLL\ - the library is compiled in a .dll (libcpuid.dll), which you'd need to ship alongside your executable. Static C runtime.
|
||||||
|
|
||||||
|
Operating system and compiler version:
|
||||||
|
$(wmic os get caption,version -value | sed '/^[[:space:]]*$/d')\n$(MSBuild.exe -version | sed '/^[[:space:]]*$/d')
|
||||||
|
EOF
|
||||||
install -v AUTHORS ChangeLog COPYING Readme.md "$DESTDIR/"
|
install -v AUTHORS ChangeLog COPYING Readme.md "$DESTDIR/"
|
||||||
install -v libcpuid/{libcpuid_constants.h,libcpuid.h,libcpuid_types.h} "$DESTDIR/include/"
|
install -v libcpuid/{libcpuid_constants.h,libcpuid.h,libcpuid_types.h} "$DESTDIR/include/"
|
||||||
cd "$GITHUB_WORKSPACE/cpuid_tool/$BITNESS" && find * -type f -name '*.exe' -exec install -Dv "{}" "$DESTDIR/bin/{}" \;
|
cd "$GITHUB_WORKSPACE/cpuid_tool/$BITNESS" && find * -type f -name '*.exe' -exec install -Dv "{}" "$DESTDIR/bin/{}" \;
|
||||||
|
@ -65,7 +60,7 @@ jobs:
|
||||||
DESTDIR: ${{ github.workspace }}/installdir
|
DESTDIR: ${{ github.workspace }}/installdir
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.platform.name }}
|
name: ${{ matrix.platform.name }}
|
||||||
path: installdir/*
|
path: installdir/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue