Skip to content

Update readme.md

Update readme.md #20

Workflow file for this run

name: C/C++ CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_linux:
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- uses: actions/checkout@v2
- name: make
run: make lin
- name: version
run: echo "::set-output name=version::$(./csvfix/bin/csvfix|grep CSVfix|cut -f 2 -d ' ')"
id: version
- name: release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
release_name: ${{ steps.version.outputs.version }}
tag_name: ${{ github.ref }}
# body_path: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ github.token }}
- name: upload linux artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./csvfix/bin/csvfix.linux-amd64.gz
asset_name: csvfix.linux-amd64.gz
asset_content_type: application/gzip
build_mac:
needs: build_linux
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: make
run: make mac
- name: upload mac artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{needs.build_linux.outputs.upload_url}}
asset_path: ./csvfix/bin/csvfix.osx.gz
asset_name: csvfix.osx.gz
asset_content_type: application/gzip
build_win:
needs: build_linux
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: make
run: make win
- name: upload win artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{needs.build_linux.outputs.upload_url}}
asset_path: ./csvfix/bin/csvfix.win64.gz
asset_name: csvfix.win64.gz
asset_content_type: application/gzip