exclude build folder from archive #6
Workflow file for this run
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 Releases | |
on: | |
pull_request: | |
# workflow_dispatch: | |
jobs: | |
build_and_upload_c_lib_release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Get Conan | |
uses: turtlebrowser/[email protected] | |
- name: Create default profile | |
run: conan profile detect --force | |
- name: Install dependencies | |
run: | | |
cd c | |
conan install . --output-folder=build --build=missing | |
- name: Set up build environment | |
run: | | |
cd c/build | |
sh conanbuild.sh | |
cmake .. -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release | |
- name: Build all targets | |
run: | | |
cd c/build | |
make build | |
- name: Build `data.h` | |
run: | | |
cd c | |
./build/build | |
- name: Create archive | |
uses: TheDoctor0/[email protected] | |
with: | |
type: 'zip' | |
filename: 'c-release.zip' | |
directory: 'c' | |
recursive_exclusions: 'build/* *.git*' | |
# - name: Upload release | |
# uses: ncipollo/[email protected] | |
# with: | |
# name: 'Kuliya latest' | |
# artifacts: 'c-release.zip' | |
# token: ${{ secrets.GITHUB_TOKEN }} |