Skip to content

Merge branch 'main' into stable #189

Merge branch 'main' into stable

Merge branch 'main' into stable #189

Workflow file for this run

name: C/C++ CI
on:
push:
branches: [ "stable" ]
pull_request:
branches: [ "stable" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: benjlevesque/[email protected]
id: short-sha
with:
length: 7
- run: echo $SHA
env:
SHA: ${{ steps.short-sha.outputs.sha }}
- name: install_dependencies
run: |
sudo apt-get update
sudo apt-get install libfreetype-dev
sudo apt-get install libsdl2-dev
sudo apt-get install libsdl2-image-dev
sudo apt-get install libglu-dev
sudo apt-get install libglew-dev
- name: cmake64
run: cmake -DCMAKE_BUILD_TYPE=Portable64 .
- name: make64
run: make
- name: pack64
run: tar zcvf GLSMAC-v0.2-${{ env.SHA }}-bin64.tar.gz bin/
- name: publish
uses: actions/upload-artifact@v3
with:
name: GLSMAC-ubuntu-bin
path: |
./GLSMAC-v0.2-${{ env.SHA }}-bin64.tar.gz
- uses: dev-drprasad/[email protected]
with:
keep_latest: 4
delete_tags: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v0.2-${{ env.SHA }}
release_name: v0.2-${{ env.SHA }}
draft: false
prerelease: false
- name: Upload Release Asset 64
id: upload-release-asset-64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps - name: upload
asset_path: ./GLSMAC-v0.2-${{ env.SHA }}-bin64.tar.gz
asset_name: GLSMAC-v0.2-${{ env.SHA }}-bin64.tar.gz
asset_content_type: application/gzip