Skip to content

Commit

Permalink
CI: Add auto build for release package
Browse files Browse the repository at this point in the history
  • Loading branch information
Dasperal committed Jun 25, 2024
1 parent 1aadd27 commit b174fd5
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build release packages

on:
release:
types: ["published"]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Cmake:
name: ${{ matrix.config.display_name }}
runs-on: ${{ matrix.config.runner }}
strategy:
fail-fast: false
matrix:
config:
-
display_name: "WATCOM 1.9" # "WATCOM 2.0 (last release)"
runner: "ubuntu-22.04"
shell: "bash"
watcom_version: "1.9" # "2.0"
# watcom_tag: "current"

permissions:
contents: write
defaults:
run:
shell: ${{ matrix.config.shell }}
steps:
- uses: open-watcom/setup-watcom@v0
with:
version: ${{ matrix.config.watcom_version }}
tag: ${{ matrix.config.watcom_tag }}

- uses: actions/checkout@v4

- name: Configure & Build & Package
run: |
cmake --workflow --preset "ci-watcom-release"
- name: Upload Zip
shell: bash
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: |
gh release upload ${{ github.event.release.tag_name }} ./build/russian-doom-dos-${{ github.ref_name }}-i386.zip
gh release upload ${{ github.event.release.tag_name }} ./build/russian-doom-dos-${{ github.ref_name }}-i386.zip.sha256

0 comments on commit b174fd5

Please sign in to comment.