This addresses the following warnings from GitHub Actions:
Node.js 16 actions are deprecated. Please update the following
actions to use Node.js 20: actions/checkout@v3. For more information
see:
https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Node.js 16 actions are deprecated. Please update the following
actions to use Node.js 20: actions/upload-artifact@v3. For more
information see:
https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
A near-identical warning forced everyone to upgrade to v3 last year, so
this is some pointless churn, but let's just get it over with again...
name: Build and test with gcc
runs-on: ubuntu-latest
steps:
name: Build and test with gcc
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
- name: Install dependencies
run: |
sudo apt-get update
- run: make -j8 check V=1
- run: make -j8 install V=1 DESTDIR=$PWD/installdir
- run: make -j8 uninstall V=1 DESTDIR=$PWD/installdir
- run: make -j8 check V=1
- run: make -j8 install V=1 DESTDIR=$PWD/installdir
- run: make -j8 uninstall V=1 DESTDIR=$PWD/installdir
- - uses: actions/upload-artifact@v3
+ - uses: actions/upload-artifact@v4
if: failure()
with:
name: gcc-test-logs
if: failure()
with:
name: gcc-test-logs
name: Build and test with clang
runs-on: ubuntu-latest
steps:
name: Build and test with clang
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
- name: Install dependencies
run: |
sudo apt-get update
- run: make -j8 check V=1
- run: make -j8 install V=1 DESTDIR=$PWD/installdir
- run: make -j8 uninstall V=1 DESTDIR=$PWD/installdir
- run: make -j8 check V=1
- run: make -j8 install V=1 DESTDIR=$PWD/installdir
- run: make -j8 uninstall V=1 DESTDIR=$PWD/installdir
- - uses: actions/upload-artifact@v3
+ - uses: actions/upload-artifact@v4
if: failure()
with:
name: clang-test-logs
if: failure()
with:
name: clang-test-logs
name: Build and test with gcc -m32
runs-on: ubuntu-latest
steps:
name: Build and test with gcc -m32
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo dpkg --add-architecture i386
- name: Install dependencies
run: |
sudo dpkg --add-architecture i386
- run: make -j8 check V=1
- run: make -j8 install V=1 DESTDIR=$PWD/installdir
- run: make -j8 uninstall V=1 DESTDIR=$PWD/installdir
- run: make -j8 check V=1
- run: make -j8 install V=1 DESTDIR=$PWD/installdir
- run: make -j8 uninstall V=1 DESTDIR=$PWD/installdir
- - uses: actions/upload-artifact@v3
+ - uses: actions/upload-artifact@v4
if: failure()
with:
name: i386-test-logs
if: failure()
with:
name: i386-test-logs
name: Build and test with ASAN enabled
runs-on: ubuntu-latest
steps:
name: Build and test with ASAN enabled
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
- name: Install dependencies
run: |
sudo apt-get update
- run: ./bootstrap
- run: ./configure CC=clang CFLAGS="$DEF_CFLAGS -fsanitize=address -fno-sanitize-recover=address"
- run: make -j8 check V=1
- run: ./bootstrap
- run: ./configure CC=clang CFLAGS="$DEF_CFLAGS -fsanitize=address -fno-sanitize-recover=address"
- run: make -j8 check V=1
- - uses: actions/upload-artifact@v3
+ - uses: actions/upload-artifact@v4
if: failure()
with:
name: asan-test-logs
if: failure()
with:
name: asan-test-logs
name: Build and test with UBSAN enabled
runs-on: ubuntu-latest
steps:
name: Build and test with UBSAN enabled
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
- name: Install dependencies
run: |
sudo apt-get update
- run: ./bootstrap
- run: ./configure CC=clang CFLAGS="$DEF_CFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
- run: make -j8 check V=1
- run: ./bootstrap
- run: ./configure CC=clang CFLAGS="$DEF_CFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
- run: make -j8 check V=1
- - uses: actions/upload-artifact@v3
+ - uses: actions/upload-artifact@v4
if: failure()
with:
name: ubsan-test-logs
if: failure()
with:
name: ubsan-test-logs
name: Run shellcheck
runs-on: ubuntu-latest
steps:
name: Run shellcheck
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
- name: Install dependencies
run: |
sudo apt-get update
name: Build and test on macOS
runs-on: macos-latest
steps:
name: Build and test on macOS
runs-on: macos-latest
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Install dependencies
run: |
brew install autoconf automake libtool pkg-config
- name: Install dependencies
run: |
brew install autoconf automake libtool pkg-config
- run: make -j8 check V=1
- run: make -j8 install DESTDIR=$PWD/installdir
- run: make -j8 uninstall DESTDIR=$PWD/installdir
- run: make -j8 check V=1
- run: make -j8 install DESTDIR=$PWD/installdir
- run: make -j8 uninstall DESTDIR=$PWD/installdir
- - uses: actions/upload-artifact@v3
+ - uses: actions/upload-artifact@v4
if: failure()
with:
name: macos-test-logs
if: failure()
with:
name: macos-test-logs
run:
shell: msys2 {0}
steps:
run:
shell: msys2 {0}
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
with:
fetch-depth: 0 # Need tags for tools/get-version-number.sh
- uses: msys2/setup-msys2@v2
with:
fetch-depth: 0 # Need tags for tools/get-version-number.sh
- uses: msys2/setup-msys2@v2
${{matrix.cc_pkg}}
pkgconf
- run: CFLAGS="$DEF_CFLAGS" ./tools/windows-build.sh ${{matrix.options}}
${{matrix.cc_pkg}}
pkgconf
- run: CFLAGS="$DEF_CFLAGS" ./tools/windows-build.sh ${{matrix.options}}
- - uses: actions/upload-artifact@v3
+ - uses: actions/upload-artifact@v4
with:
name: windows-${{matrix.msystem}}-bin
path: wimlib-*-bin
with:
name: windows-${{matrix.msystem}}-bin
path: wimlib-*-bin
run:
shell: msys2 {0}
steps:
run:
shell: msys2 {0}
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
with:
fetch-depth: 0 # Need tags for tools/get-version-number.sh
- uses: msys2/setup-msys2@v2
with:
fetch-depth: 0 # Need tags for tools/get-version-number.sh
- uses: msys2/setup-msys2@v2
sanitizer: --asan --ubsan
runs-on: ubuntu-latest
steps:
sanitizer: --asan --ubsan
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
- name: Install dependencies
run: |
sudo apt-get update
cflags: -fsanitize=undefined -fno-sanitize-recover=undefined
runs-on: ubuntu-latest
steps:
cflags: -fsanitize=undefined -fno-sanitize-recover=undefined
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
- name: Install dependencies
run: |
sudo apt-get update
run:
shell: msys2 {0}
steps:
run:
shell: msys2 {0}
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
with:
fetch-depth: 0 # Need tags for tools/get-version-number.sh
- uses: msys2/setup-msys2@v2
with:
fetch-depth: 0 # Need tags for tools/get-version-number.sh
- uses: msys2/setup-msys2@v2