Skip to content

Try secondary download methods + add readline at the end so error is … #12

Try secondary download methods + add readline at the end so error is …

Try secondary download methods + add readline at the end so error is … #12

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 for 32-bit compilation
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x86 # specify 32-bit architecture
- name: Compile the C code for Windows XP
run: cl.exe /D_WIN32_WINNT=0x0501 /Fe:program.exe main.c /link /SUBSYSTEM:WINDOWS,5.01
- 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