mirror of
https://github.com/pcvolkmer/osc-variant.git
synced 2025-12-12 14:13:20 +00:00
chore: update ci (#47)
This commit is contained in:
51
.github/workflows/build.yml
vendored
Normal file
51
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
name: build and upload assets
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
env:
|
||||||
|
# Use invalid OSB key to packages with ZIP support but without valid build in password
|
||||||
|
OSB_KEY: "invalid"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
linuxbuild:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
packages: 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:
|
||||||
|
runs-on: windows-latest
|
||||||
|
permissions:
|
||||||
|
packages: 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
|
||||||
56
.github/workflows/release.yml
vendored
56
.github/workflows/release.yml
vendored
@@ -1,50 +1,26 @@
|
|||||||
name: Create release and upload assets
|
name: release-please
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
branches: [ 'master' ]
|
||||||
- 'v*'
|
|
||||||
|
|
||||||
env:
|
permissions:
|
||||||
# Use invalid OSB key to packages with ZIP support but without valid build in password
|
contents: read
|
||||||
OSB_KEY: "invalid"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linuxbuild:
|
release-please:
|
||||||
|
name: run release-please
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
permissions:
|
||||||
run:
|
contents: write
|
||||||
shell: bash
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/create-github-app-token@v2
|
||||||
- name: Run tests
|
id: app-token
|
||||||
run: cargo test --verbose
|
|
||||||
- run: make linux-package
|
|
||||||
- name: Release
|
|
||||||
uses: softprops/action-gh-release@v2
|
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
|
||||||
with:
|
with:
|
||||||
draft: 'true'
|
app-id: ${{ secrets.RELEASE_APP_ID }}
|
||||||
make_latest: 'true'
|
private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
|
||||||
generate_release_notes: 'true'
|
owner: ${{ github.repository_owner }}
|
||||||
files: |
|
- uses: googleapis/release-please-action@v4
|
||||||
*linux.tar.gz
|
|
||||||
windowsbuild:
|
|
||||||
runs-on: windows-latest
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
shell: bash
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Run tests
|
|
||||||
run: cargo test --verbose
|
|
||||||
- run: make win-package
|
|
||||||
- name: Release
|
|
||||||
uses: softprops/action-gh-release@v2
|
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
|
||||||
with:
|
with:
|
||||||
draft: 'true'
|
token: ${{ steps.app-token.outputs.token }}
|
||||||
make_latest: 'true'
|
|
||||||
generate_release_notes: 'true'
|
|
||||||
files: |
|
|
||||||
*win64.zip
|
|
||||||
5
.github/workflows/tests.yml
vendored
5
.github/workflows/tests.yml
vendored
@@ -6,14 +6,15 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "master" ]
|
branches: [ "master" ]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
3
.release-please-manifest.json
Normal file
3
.release-please-manifest.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
".": "0.10.0"
|
||||||
|
}
|
||||||
11
release-please-config.json
Normal file
11
release-please-config.json
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/refs/heads/main/schemas/config.json",
|
||||||
|
"bump-minor-pre-major": true,
|
||||||
|
"bump-patch-for-minor-pre-major": true,
|
||||||
|
"include-v-in-tag": true,
|
||||||
|
"include-component-in-tag": false,
|
||||||
|
"release-type": "rust",
|
||||||
|
"packages": {
|
||||||
|
".": { }
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user