Skip to content

Commit

Permalink
attempt to upload docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus10110 committed Jul 11, 2023
1 parent a1cde25 commit 6463ab5
Showing 1 changed file with 58 additions and 53 deletions.
111 changes: 58 additions & 53 deletions .github/workflows/build.yml
Expand Up @@ -9,39 +9,39 @@ on:
branches: [master]

jobs:
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: |
cmake -B ${{github.workspace}}/build -A x64
cmake --build ${{github.workspace}}/build --config Release
- name: Upload windows build
uses: actions/upload-artifact@v2
with:
name: windows
path: ${{github.workspace}}/build/Analyzers/Release/*.dll
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: |
cmake -B ${{github.workspace}}/build/x86_64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=x86_64
cmake --build ${{github.workspace}}/build/x86_64
cmake -B ${{github.workspace}}/build/arm64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=arm64
cmake --build ${{github.workspace}}/build/arm64
- name: Upload MacOS x86_64 build
uses: actions/upload-artifact@v2
with:
name: macos_x86_64
path: ${{github.workspace}}/build/x86_64/Analyzers/*.so
- name: Upload MacOS arm64 build
uses: actions/upload-artifact@v2
with:
name: macos_arm64
path: ${{github.workspace}}/build/arm64/Analyzers/*.so
# windows:
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v2
# - name: Build
# run: |
# cmake -B ${{github.workspace}}/build -A x64
# cmake --build ${{github.workspace}}/build --config Release
# - name: Upload windows build
# uses: actions/upload-artifact@v2
# with:
# name: windows
# path: ${{github.workspace}}/build/Analyzers/Release/*.dll
# macos:
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v2
# - name: Build
# run: |
# cmake -B ${{github.workspace}}/build/x86_64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=x86_64
# cmake --build ${{github.workspace}}/build/x86_64
# cmake -B ${{github.workspace}}/build/arm64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=arm64
# cmake --build ${{github.workspace}}/build/arm64
# - name: Upload MacOS x86_64 build
# uses: actions/upload-artifact@v2
# with:
# name: macos_x86_64
# path: ${{github.workspace}}/build/x86_64/Analyzers/*.so
# - name: Upload MacOS arm64 build
# uses: actions/upload-artifact@v2
# with:
# name: macos_arm64
# path: ${{github.workspace}}/build/arm64/Analyzers/*.so
linux:
runs-on: ubuntu-latest
container:
Expand Down Expand Up @@ -73,24 +73,29 @@ jobs:
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
ldd -v build/Analyzers/*.so
publish:
needs: [windows, macos, linux]
runs-on: ubuntu-latest
steps:
- name: download individual builds
uses: actions/download-artifact@v2
with:
path: ${{github.workspace}}/artifacts
- name: zip
run: |
cd ${{github.workspace}}/artifacts
zip -r ${{github.workspace}}/analyzer.zip .
- uses: actions/upload-artifact@v2
with:
name: all-platforms
path: ${{github.workspace}}/artifacts/**
- name: create release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
- name: Upload Container Linux build
uses: actions/upload-artifact@v2
with:
files: ${{github.workspace}}/analyzer.zip
name: linux-container
path: ${{github.workspace}}/build/Analyzers/*.so
# publish:
# needs: [windows, macos, linux]
# runs-on: ubuntu-latest
# steps:
# - name: download individual builds
# uses: actions/download-artifact@v2
# with:
# path: ${{github.workspace}}/artifacts
# - name: zip
# run: |
# cd ${{github.workspace}}/artifacts
# zip -r ${{github.workspace}}/analyzer.zip .
# - uses: actions/upload-artifact@v2
# with:
# name: all-platforms
# path: ${{github.workspace}}/artifacts/**
# - name: create release
# uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
# with:
# files: ${{github.workspace}}/analyzer.zip

0 comments on commit 6463ab5

Please sign in to comment.