1
0
mirror of https://github.com/pcvolkmer/osc-variant.git synced 2025-12-13 14:33:21 +00:00

chore: update ci (#53)

This commit is contained in:
2025-11-26 22:21:45 +01:00
committed by GitHub
parent 6c6941228d
commit 334a617911
2 changed files with 18 additions and 28 deletions

64
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,64 @@
name: CI
on:
pull_request:
branches: [ 'master' ]
push:
branches: [ 'master' ]
release:
types: [ 'created' ]
permissions:
contents: read
env:
# Use invalid OSB key to packages with ZIP support but without valid build in password
OSB_KEY: "invalid"
CARGO_TERM_COLOR: always
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run tests
run: cargo test --verbose
linuxbuild:
name: Create Linux Package
runs-on: ubuntu-latest
permissions:
contents: write
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- name: Run tests
run: cargo test --verbose
- run: make linux-package
- name: Release
if: ${{ github.event_name == 'release' && github.event.action == 'created' }}
uses: softprops/action-gh-release@v2
with:
files: |
*linux.tar.gz
windowsbuild:
name: Create Windows Package
runs-on: windows-latest
permissions:
contents: write
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- name: Run tests
run: cargo test --verbose
- run: make win-package
- name: Release
if: ${{ github.event_name == 'release' && github.event.action == 'created' }}
uses: softprops/action-gh-release@v2
with:
files: |
*win64.zip