Skip to content

Commit

Permalink
Test AGAIN
Browse files Browse the repository at this point in the history
  • Loading branch information
connellr023 committed Aug 22, 2024
1 parent bdb1486 commit 86f1ccb
Showing 1 changed file with 32 additions and 14 deletions.
46 changes: 32 additions & 14 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,24 @@ on:
- "v*"

jobs:
create_release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ github.ref }}
release_name: "Release ${{ github.ref }}"
draft: false
prerelease: false

build-windows:
runs-on: windows-latest
needs: create_release

steps:
- name: Checkout
Expand All @@ -22,17 +38,19 @@ jobs:
arch: x86_64

- name: Build Windows x86/x64 Release
run: |
make release
run: make release

- name: Upload Release
uses: actions/upload-artifact@v3
- name: Upload Windows Release to GitHub
uses: actions/upload-release-asset@v1
with:
name: windows_x86_x64_release
path: ./build.exe
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build.exe
asset_name: windows_x86_x64_release.exe
asset_content_type: application/octet-stream

build-linux:
runs-on: ubuntu-latest
needs: create_release

steps:
- name: Checkout
Expand All @@ -41,15 +59,15 @@ jobs:
- name: Install Dependencies
run: |
sudo apt-get update &&
sudo apt-get install -y libx11-dev &&
sudo apt-get install -y g++
sudo apt-get install -y libx11-dev g++
- name: Build Linux x86/x64 Release
run: |
make release
run: make release

- name: Upload Release
uses: actions/upload-artifact@v3
- name: Upload Linux Release to GitHub
uses: actions/upload-release-asset@v1
with:
name: linux_x86_x64_release
path: ./build
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build
asset_name: linux_x86_x64_release
asset_content_type: application/octet-stream

0 comments on commit 86f1ccb

Please sign in to comment.