This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #35
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: CMake | |
on: | |
push: | |
branches: [ "*" ] | |
tags: [ "*" ] | |
pull_request: | |
branches: [ master ] | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: 'debian:buster-backports' | |
steps: | |
- name: Install Dependencies | |
shell: bash | |
run: | | |
apt-get update | |
apt-get install -y git python3 libsqlite3-dev libpython3-dev ninja-build build-essential | |
apt-get -t buster-backports install -y cmake | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Query tag name | |
uses: little-core-labs/[email protected] | |
- name: Build | |
env: | |
CFLAGS: '-flto -O3 -march=znver1' | |
shell: bash | |
run: ./.ci/build.sh | |
- name: Upload | |
uses: actions/upload-artifact@v2 | |
with: | |
name: artifacts | |
path: | | |
build/*.tar* | |
build/*.deb | |
build/*.sha256 | |
release: | |
runs-on: ubuntu-latest | |
needs: [build] | |
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
steps: | |
- uses: actions/[email protected] | |
- name: Query tag name | |
uses: little-core-labs/[email protected] | |
id: tagName | |
- name: Create release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ steps.tagName.outputs.tag }} | |
release_name: ${{ steps.tagName.outputs.tag }} | |
draft: false | |
prerelease: false | |
- name: Upload artifacts | |
uses: alexellis/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
asset_paths: '["./**/*.tar.xz","./**/*.deb", "./**/*.sha256"]' |