diff --git a/.github/workflows/build_many_linux.yml b/.github/workflows/build_many_linux.yml new file mode 100644 index 00000000..aecd283f --- /dev/null +++ b/.github/workflows/build_many_linux.yml @@ -0,0 +1,37 @@ + +name: many-linux + +on: + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + container: quay.io/pypa/manylinux2014_x86_64 + steps: + - uses: actions/checkout@v3 + + - name: dbg + run: | + set -x + ld -v + ldd --version + g++ -v + + - run: make nix + + - env: + MKN_GCC_PREFERRED: 1 + KUL_GIT_CO: --depth 1 + run: | + ldd mkn + KLOG=3 ./mkn build -dtKa "-std=c++17 -fPIC" -O 2 -g 0 -W 9 + KLOG=3 ./mkn build -Op test_mod -a "-std=c++17 -fPIC" -O 2 -g 0 -W 9 + KLOG=3 ./mkn build test pack -Op test -a "-std=c++17 -fPIC" -O 2 -g 0 -W 9 + ldd bin/build/mkn + + - uses: actions/upload-artifact@v3 + with: + name: mkn + path: bin/build/mkn diff --git a/.github/workflows/build_nix.yml b/.github/workflows/build_nix.yml index 08090340..579f2070 100644 --- a/.github/workflows/build_nix.yml +++ b/.github/workflows/build_nix.yml @@ -8,7 +8,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: dbg run: | @@ -29,7 +29,7 @@ jobs: KLOG=3 ./mkn build test pack -Op test -a "-std=c++17 -fPIC" -O 2 -g 0 -W 9 ldd bin/build/mkn - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v3 with: name: mkn path: bin/build/mkn diff --git a/.github/workflows/build_osx.yml b/.github/workflows/build_osx.yml index c1b7633d..576c6a82 100644 --- a/.github/workflows/build_osx.yml +++ b/.github/workflows/build_osx.yml @@ -8,7 +8,7 @@ jobs: build: runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - run: make bsd - run: brew install ccache @@ -23,7 +23,7 @@ jobs: KLOG=3 ./mkn build -dtOp test_mod KLOG=3 ./mkn build test pack -Op test - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v3 env: KUL_GIT_CO: --depth 10 with: diff --git a/.github/workflows/build_win.yml b/.github/workflows/build_win.yml index 134d31ae..89d2f36f 100644 --- a/.github/workflows/build_win.yml +++ b/.github/workflows/build_win.yml @@ -8,7 +8,7 @@ jobs: build: runs-on: windows-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - run: bash -c "rm /bin/link" # interferes with cl/link.exe @@ -26,7 +26,7 @@ jobs: mkn build -dtOp test_mod -a "-std:c++17 -EHsc" mkn build test pack -Op test -a "-std:c++17 -EHsc" - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v3 with: name: mkn path: bin/build/mkn.exe diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b5eaf55c..ea2cefe1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ jobs: os: [ubuntu-latest, windows-latest, macos-latest] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - if: matrix.os == 'windows-latest' run: bash -c "rm /bin/link" # interferes with cl/link.exe @@ -47,32 +47,51 @@ jobs: - if: matrix.os == 'ubuntu-latest' - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: maiken-${{ matrix.os }} path: bin/build/mkn_nix retention-days: 1 - if: matrix.os == 'windows-latest' - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: maiken-${{ matrix.os }} path: bin/build/mkn.exe retention-days: 1 - if: matrix.os == 'macos-latest' - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: maiken-${{ matrix.os }} path: bin/build/mkn_osx retention-days: 1 + build_many_linux: + runs-on: ubuntu-latest + container: quay.io/pypa/manylinux2014_x86_64 + steps: + - uses: actions/checkout@v3 + - run: make nix + - env: + MKN_GCC_PREFERRED: 1 + KUL_GIT_CO: --depth 1 + run: | + KLOG=3 ./mkn build -dtKa "-std=c++17 -fPIC" -O 2 -g 0 -W 9 -o mkn_nix + + - uses: actions/upload-artifact@v3 + with: + name: maiken-ubuntu + path: bin/build/mkn_manylinux + retention-days: 1 + + release: name: "Prelease" needs: build runs-on: ubuntu-latest steps: - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v3 - name: Display fetched artifacts run: ls -R - name: Emit a Github Release @@ -86,4 +105,4 @@ jobs: maiken-windows-latest/mkn.exe maiken-macos-latest/mkn_osx maiken-ubuntu-latest/mkn_nix - + maiken-ubuntu/mkn_manylinux