diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2023-11-24 19:34:03 +1100 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2023-11-24 19:34:03 +1100 |
commit | 584f0f9d1032d6f6ca60cf79c636de8f177b9e47 (patch) | |
tree | 6818441aaf7fb15c96a5a9687495e1d25fc69c4d | |
parent | a7108046fc1989fb3fbb40bf3b7764e1df1f3d19 (diff) | |
download | sg3_utils-584f0f9d1032d6f6ca60cf79c636de8f177b9e47.tar.gz |
test CI using FreeBSD VM on github
second cut
-rw-r--r-- | .github/workflows/ci.yml | 74 |
1 files changed, 4 insertions, 70 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6a44ce69..7da0a1af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,72 +6,6 @@ name: CI on: [push, pull_request] jobs: - build: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - build: - - android-23 - - android-33 - - linux-gcc - - linux-clang - - linux-x86-gcc - - linux-powerpc64-gcc - - linux-mingw64-gcc - - macos - include: - - build: android-23 - cc: clang - host: aarch64-linux-android23 - - build: android-33 - cc: clang - host: aarch64-linux-android33 - - build: linux-gcc - cc: gcc - - build: linux-clang - cc: clang - - build: linux-x86-gcc - cc: gcc - arch: x86 - - build: linux-powerpc64-gcc - cc: gcc - host: powerpc64-linux-gnu - - build: linux-mingw64-gcc - cc: gcc - host: x86_64-w64-mingw32 - - build: macos - cc: clang - os: macos-latest - steps: - - uses: actions/checkout@v3 - - name: Install Android NDK - run: | - case ${{matrix.build}} \ - in android*) \ - wget --quiet https://dl.google.com/android/repository/android-ndk-r25c-linux.zip; \ - unzip -q android-ndk-r25c-linux.zip;; \ - esac - - name: Install Ubuntu packages - run: | - sudo apt-get -q update - case "${{matrix.host}}" in \ - x86_64-w64-mingw32) \ - sudo apt-get -q install -y binutils-mingw-w64 gcc-mingw-w64;; \ - powerpc64-linux-gnu) \ - sudo apt-get -q install -y binutils-powerpc64-linux-gnu \ - gcc-powerpc64-linux-gnu;; \ - esac - - name: Build - run: | - echo "HOST=${{matrix.host}}" - NDK=$PWD/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin - export PATH="$NDK:$PATH" - ./autogen.sh - ./configure --host=${{matrix.host}} \ - CC=${{ matrix.host && format('{0}-{1}', matrix.host, matrix.cc) || matrix.cc }} \ - CFLAGS="-Wall -Wextra -Werror -Wno-sign-compare -Wno-unused-function -Wno-unused-parameter ${{matrix.cflags}}" - make -j$(nproc) fbsd: runs-on: ubuntu-22.04 name: A job to build sg3_utils on FreeBSD @@ -88,9 +22,9 @@ jobs: usesh: true prepare: | pkg install -y curl - run: | + pwd + ls -lah + whoami + env freebsd-version - ./autogen.sh - ./configure - make CFLAGS="-Werror" |