Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manylinux mkn artifact #83

Merged
merged 1 commit into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/build_many_linux.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions .github/workflows/build_nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: dbg
run: |
Expand All @@ -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
4 changes: 2 additions & 2 deletions .github/workflows/build_osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
31 changes: 25 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -86,4 +105,4 @@ jobs:
maiken-windows-latest/mkn.exe
maiken-macos-latest/mkn_osx
maiken-ubuntu-latest/mkn_nix

maiken-ubuntu/mkn_manylinux