mirror of
https://github.com/wiiu-env/drc_region_free_plugin.git
synced 2024-12-04 23:54:17 +01:00
Add support for automatic nightly versions
This commit is contained in:
parent
344213f695
commit
4712a23712
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -18,6 +18,13 @@ jobs:
|
||||
needs: clang-format
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: create version.h
|
||||
run: |
|
||||
git_hash=$(git rev-parse --short "$GITHUB_SHA")
|
||||
cat <<EOF > ./src/version.h
|
||||
#pragma once
|
||||
#define PLUGIN_VERSION_EXTRA " (nightly-$git_hash)"
|
||||
EOF
|
||||
- name: build binary
|
||||
run: |
|
||||
docker build . -t builder
|
||||
|
7
.github/workflows/pr.yml
vendored
7
.github/workflows/pr.yml
vendored
@ -15,6 +15,13 @@ jobs:
|
||||
needs: clang-format
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: create version.h
|
||||
run: |
|
||||
git_hash=$(git rev-parse --short "${{ github.event.pull_request.head.sha }}")
|
||||
cat <<EOF > ./src/version.h
|
||||
#pragma once
|
||||
#define PLUGIN_VERSION_EXTRA " (nightly-$git_hash)"
|
||||
EOF
|
||||
- name: build binary
|
||||
run: |
|
||||
docker build . -t builder
|
||||
|
@ -1,8 +1,12 @@
|
||||
#include "version.h"
|
||||
#include <wups.h>
|
||||
|
||||
#define PLUGIN_VERSION "v0.2.1"
|
||||
#define PLUGIN_VERSION_FULL PLUGIN_VERSION PLUGIN_VERSION_EXTRA
|
||||
|
||||
WUPS_PLUGIN_NAME("drc_region_free_plugin");
|
||||
WUPS_PLUGIN_DESCRIPTION("Allows the usage of gamepads from every region");
|
||||
WUPS_PLUGIN_VERSION("0.2.1");
|
||||
WUPS_PLUGIN_VERSION(PLUGIN_VERSION_FULL);
|
||||
WUPS_PLUGIN_AUTHOR("Maschell");
|
||||
WUPS_PLUGIN_LICENSE("GPL");
|
||||
|
||||
|
2
src/version.h
Normal file
2
src/version.h
Normal file
@ -0,0 +1,2 @@
|
||||
#pragma once
|
||||
#define PLUGIN_VERSION_EXTRA ""
|
Loading…
Reference in New Issue
Block a user