Bump actions/download-artifact from 1 to 4.1.7 in /.github/workflows #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C/C++ CI | |
on: [push] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
platform: [ubuntu-latest, macos-latest, windows-latest] | |
include: | |
- platform: windows-latest | |
cmake_type: "Visual Studio 16 2019" | |
dll_name: "Release/libvhacd.dll" | |
target_dll_name: "libvhacd.dll" | |
- platform: ubuntu-latest | |
cmake_type: "Unix Makefiles" | |
dll_name: "liblibvhacd.so" | |
target_dll_name: "liblibvhacd.so" | |
- platform: macos-latest | |
cmake_type: "Unix Makefiles" | |
dll_name: "liblibvhacd.dylib" | |
target_dll_name: "liblibvhacd.bundle" | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: ilammy/[email protected] | |
- name: configure | |
run: | | |
mkdir build | |
cd build | |
cmake -G "${{ matrix.cmake_type }}" ../src | |
- name: build | |
run: cmake --build build --config Release | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: ${{ matrix.platform }} | |
path: build/dll/${{ matrix.dll_name }} | |
create_release: | |
runs-on: ubuntu-latest | |
needs: [build] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: make release | |
uses: actions/[email protected] | |
id: create_release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
draft: true | |
tag_name: ${{ github.ref }} | |
release_name: build of ${{ github.sha }} | |
- uses: actions/[email protected] | |
with: | |
name: ubuntu-latest | |
- uses: actions/[email protected] | |
with: | |
name: windows-latest | |
- uses: actions/[email protected] | |
with: | |
name: macos-latest | |