Skip to content

I hate how slow the testing turnaround is on actions #4

I hate how slow the testing turnaround is on actions

I hate how slow the testing turnaround is on actions #4

Workflow file for this run

name: C build and release
on:
push:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Compile the C code
run: cl.exe /Fe:program.exe main.c
- name: Upload the executable as an artifact
uses: actions/upload-artifact@v2
with:
name: program
path: program.exe
release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with:
name: program
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: release-${{ github.sha }}
release_name: Release ${{ github.run_number }}
draft: false
prerelease: false
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./program.exe
asset_name: program.exe
asset_content_type: application/octet-stream