Skip to content

Commit

Permalink
See if nightly releases will work.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgiven committed Feb 26, 2024
1 parent c19ed93 commit ac47411
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: C/C++ CI

on: [push]
on: [push, pull_request]

jobs:
build-linux:
Expand Down
73 changes: 73 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: C/C++ CI

on:
push:
branches
- "default"

jobs:
build-windows:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
update: true
msystem: UCRT64
install: >-
make
mingw-w64-ucrt-x86_64-gcc
mingw-w64-ucrt-x86_64-lua
mingw-w64-ucrt-x86_64-nsis
ninja
bison
flex
zip
git
- uses: actions/checkout@v3

- name: build
run: |
make LDFLAGS="-s -static" CFLAGS=-Os
- name: package
run: |
make ack-setup.exe
- name: date
run: |
echo "RELEASE_DATE=$(date --rfc-3339=date)" >> ${GITHUB_ENV}
- name: tag
run: |
cd cpm65
git config user.name "davidgiven"
git config user.email "[email protected]"
git tag -f dev
git push -f origin dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: delete-old-assets
uses: mknejp/delete-release-assets@v1
with:
token: ${{ github.token }}
tag: dev
assets: |
ack-setup.exe
fail-if-no-assets: false

- name: release
uses: softprops/action-gh-release@v1
with:
name: Nightly development build ${{ env.RELEASE_DATE }}
files: |
ack-setup.exe
tag_name: dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


0 comments on commit ac47411

Please sign in to comment.