mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-11-26 07:34:15 +01:00
test
This commit is contained in:
parent
e02199f7c4
commit
7d9a2bbf65
42
.github/workflows/build.yml
vendored
42
.github/workflows/build.yml
vendored
@ -20,17 +20,13 @@ jobs:
|
|||||||
- name: Download SummerCart64 repository
|
- name: Download SummerCart64 repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: bluwy/substitute-string-action@v2.0.1
|
- name: Set SC64 version
|
||||||
|
uses: frabert/replace-string-action@v2
|
||||||
id: sc64version
|
id: sc64version
|
||||||
with:
|
with:
|
||||||
_input-text: ${{ github.ref_name }}
|
pattern: '\/'
|
||||||
[\]: -
|
string: ${{ github.ref_name }}
|
||||||
|
replace-with: '-'
|
||||||
# - name: Set SC64 version
|
|
||||||
# run: |
|
|
||||||
# echo "$GITHUB_REF_NAME"
|
|
||||||
# SC64_VERSION=-${GITHUB_REF_NAME//\//-}
|
|
||||||
# echo "$SC64_VERSION"
|
|
||||||
|
|
||||||
- name: Build everything
|
- name: Build everything
|
||||||
run: ./docker_build.sh release --force-clean
|
run: ./docker_build.sh release --force-clean
|
||||||
@ -38,18 +34,18 @@ jobs:
|
|||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: sc64-pkg${{ steps.sc64version.outputs.result }}
|
name: sc64-pkg${{ steps.sc64version.outputs.replaced }}
|
||||||
path: |
|
path: |
|
||||||
sc64-extra${{ steps.sc64version.outputs.result }}.zip
|
sc64-extra${{ steps.sc64version.outputs.replaced }}.zip
|
||||||
sc64-firmware${{ steps.sc64version.outputs.result }}.bin
|
sc64-firmware${{ steps.sc64version.outputs.replaced }}.bin
|
||||||
|
|
||||||
- name: Upload release assets
|
- name: Upload release assets
|
||||||
if: github.event_name == 'release' && github.event.action == 'created'
|
if: github.event_name == 'release' && github.event.action == 'created'
|
||||||
uses: softprops/action-gh-release@v0.1.15
|
uses: softprops/action-gh-release@v0.1.15
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
sc64-extra${{ steps.sc64version.outputs.result }}.zip
|
sc64-extra${{ steps.sc64version.outputs.replaced }}.zip
|
||||||
sc64-firmware${{ steps.sc64version.outputs.result }}.bin
|
sc64-firmware${{ steps.sc64version.outputs.replaced }}.bin
|
||||||
|
|
||||||
build-sc64-py:
|
build-sc64-py:
|
||||||
strategy:
|
strategy:
|
||||||
@ -82,10 +78,12 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set SC64 version
|
- name: Set SC64 version
|
||||||
run: |
|
uses: frabert/replace-string-action@v2
|
||||||
echo "$GITHUB_REF_NAME"
|
id: sc64version
|
||||||
SC64_VERSION=-${GITHUB_REF_NAME//\//-}
|
with:
|
||||||
echo "$SC64_VERSION"
|
pattern: '\/'
|
||||||
|
string: ${{ github.ref_name }}
|
||||||
|
replace-with: '-'
|
||||||
|
|
||||||
- name: Setup python
|
- name: Setup python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
@ -121,19 +119,19 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mkdir package
|
mkdir package
|
||||||
pushd dist
|
pushd dist
|
||||||
tar ${{ matrix.package-options }} ../package/${{ matrix.package-name }}${{ env.SC64_VERSION }}.${{ matrix.package-extension }} *
|
tar ${{ matrix.package-options }} ../package/${{ matrix.package-name }}${{ steps.sc64version.outputs.replaced }}.${{ matrix.package-extension }} *
|
||||||
popd
|
popd
|
||||||
working-directory: sw/pc
|
working-directory: sw/pc
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.package-name }}${{ env.SC64_VERSION }}
|
name: ${{ matrix.package-name }}${{ steps.sc64version.outputs.replaced }}
|
||||||
path: sw/pc/package/${{ matrix.package-name }}${{ env.SC64_VERSION }}.${{ matrix.package-extension }}
|
path: sw/pc/package/${{ matrix.package-name }}${{ steps.sc64version.outputs.replaced }}.${{ matrix.package-extension }}
|
||||||
|
|
||||||
- name: Upload release assets
|
- name: Upload release assets
|
||||||
if: github.event_name == 'release' && github.event.action == 'created'
|
if: github.event_name == 'release' && github.event.action == 'created'
|
||||||
uses: softprops/action-gh-release@v0.1.15
|
uses: softprops/action-gh-release@v0.1.15
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
sw/pc/package/${{ matrix.package-name }}${{ env.SC64_VERSION }}.${{ matrix.package-extension }}
|
sw/pc/package/${{ matrix.package-name }}${{ steps.sc64version.outputs.replaced }}.${{ matrix.package-extension }}
|
||||||
|
Loading…
Reference in New Issue
Block a user