Update the Github actions
All Github actions using Node.js 16 are deprecated [1]. Update the following actions to a newer version using Node.js 20: - actions/checkout - actions/upload-artifact - microsoft/setup-msbuild [1] https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/
This commit is contained in:
parent
9070da3570
commit
6903a66cc5
22
.github/workflows/build.yml
vendored
22
.github/workflows/build.yml
vendored
@ -19,7 +19,7 @@ jobs:
|
|||||||
CC: ${{ matrix.compiler }}
|
CC: ${{ matrix.compiler }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: sudo apt-get install libbluetooth-dev libusb-1.0-0-dev
|
run: sudo apt-get install libbluetooth-dev libusb-1.0-0-dev
|
||||||
- run: autoreconf --install --force
|
- run: autoreconf --install --force
|
||||||
@ -30,7 +30,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
make install DESTDIR=$PWD/artifacts
|
make install DESTDIR=$PWD/artifacts
|
||||||
tar -czf ${{ github.job }}-${{ matrix.compiler }}.tar.gz -C artifacts usr
|
tar -czf ${{ github.job }}-${{ matrix.compiler }}.tar.gz -C artifacts usr
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ github.job }}-${{ matrix.compiler }}
|
name: ${{ github.job }}-${{ matrix.compiler }}
|
||||||
path: ${{ github.job }}-${{ matrix.compiler }}.tar.gz
|
path: ${{ github.job }}-${{ matrix.compiler }}.tar.gz
|
||||||
@ -50,7 +50,7 @@ jobs:
|
|||||||
CC: ${{ matrix.compiler }}
|
CC: ${{ matrix.compiler }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: brew install autoconf automake libtool hidapi libusb
|
run: brew install autoconf automake libtool hidapi libusb
|
||||||
- run: autoreconf --install --force
|
- run: autoreconf --install --force
|
||||||
@ -61,7 +61,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
make install DESTDIR=$PWD/artifacts
|
make install DESTDIR=$PWD/artifacts
|
||||||
tar -czf ${{ github.job }}-${{ matrix.compiler }}.tar.gz -C artifacts usr
|
tar -czf ${{ github.job }}-${{ matrix.compiler }}.tar.gz -C artifacts usr
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ github.job }}-${{ matrix.compiler }}
|
name: ${{ github.job }}-${{ matrix.compiler }}
|
||||||
path: ${{ github.job }}-${{ matrix.compiler }}.tar.gz
|
path: ${{ github.job }}-${{ matrix.compiler }}.tar.gz
|
||||||
@ -78,7 +78,7 @@ jobs:
|
|||||||
arch: [i686, x86_64]
|
arch: [i686, x86_64]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: sudo apt-get install gcc-mingw-w64 binutils-mingw-w64 mingw-w64-tools
|
run: sudo apt-get install gcc-mingw-w64 binutils-mingw-w64 mingw-w64-tools
|
||||||
- name: Install libusb
|
- name: Install libusb
|
||||||
@ -118,7 +118,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
make install DESTDIR=$PWD/artifacts
|
make install DESTDIR=$PWD/artifacts
|
||||||
tar -czf ${{ github.job }}-${{ matrix.arch }}.tar.gz -C artifacts usr
|
tar -czf ${{ github.job }}-${{ matrix.arch }}.tar.gz -C artifacts usr
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ github.job }}-${{ matrix.arch }}
|
name: ${{ github.job }}-${{ matrix.arch }}
|
||||||
path: ${{ github.job }}-${{ matrix.arch }}.tar.gz
|
path: ${{ github.job }}-${{ matrix.arch }}.tar.gz
|
||||||
@ -138,7 +138,7 @@ jobs:
|
|||||||
CONFIGURATION: Release
|
CONFIGURATION: Release
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: msys2/setup-msys2@v2
|
- uses: msys2/setup-msys2@v2
|
||||||
with:
|
with:
|
||||||
install: autoconf automake libtool pkg-config make gcc
|
install: autoconf automake libtool pkg-config make gcc
|
||||||
@ -147,9 +147,9 @@ jobs:
|
|||||||
./configure --prefix=/usr
|
./configure --prefix=/usr
|
||||||
make -C src revision.h
|
make -C src revision.h
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
- uses: microsoft/setup-msbuild@v1
|
- uses: microsoft/setup-msbuild@v2
|
||||||
- run: msbuild -m -p:Platform=${{ matrix.platform }} -p:Configuration=${{ env.CONFIGURATION }} contrib/msvc/libdivecomputer.vcxproj
|
- run: msbuild -m -p:Platform=${{ matrix.platform }} -p:Configuration=${{ env.CONFIGURATION }} contrib/msvc/libdivecomputer.vcxproj
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ github.job }}-${{ matrix.platform }}
|
name: ${{ github.job }}-${{ matrix.platform }}
|
||||||
path: contrib/msvc/${{ matrix.platform }}/${{ env.CONFIGURATION }}/bin
|
path: contrib/msvc/${{ matrix.platform }}/${{ env.CONFIGURATION }}/bin
|
||||||
@ -161,13 +161,13 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- run: |
|
- run: |
|
||||||
autoreconf --install --force
|
autoreconf --install --force
|
||||||
./configure --prefix=/usr
|
./configure --prefix=/usr
|
||||||
make -C src revision.h
|
make -C src revision.h
|
||||||
- run: $ANDROID_NDK/ndk-build -C contrib/android NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=Android.mk
|
- run: $ANDROID_NDK/ndk-build -C contrib/android NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=Android.mk
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ github.job }}
|
name: ${{ github.job }}
|
||||||
path: contrib/android/libs
|
path: contrib/android/libs
|
||||||
|
|||||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -9,7 +9,7 @@ jobs:
|
|||||||
name: Release
|
name: Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Version number
|
- name: Version number
|
||||||
id: version
|
id: version
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user