Skip to content

Commit

Permalink
for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
nishinji committed Oct 2, 2024
1 parent fc0623f commit a5004ea
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,13 @@ jobs:
create-release:
needs: [build]
strategy:
matrix:
repo: [master, store]
fail-fast: false
matrix:
repo: [master, store]
runs-on: "ubuntu-20.04"
if: |
github.ref == 'refs/heads/master' &&
github.repository == 'Vita3K/Vita3K'
# if: |
# github.ref == 'refs/heads/master' &&
# github.repository == 'Vita3K/Vita3K'
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -238,7 +239,7 @@ jobs:
ls -al artifacts/
wget -c https://github.com/tcnksm/ghr/releases/download/v0.16.2/ghr_v0.16.2_linux_amd64.tar.gz
tar xfv ghr_v0.16.2_linux_amd64.tar.gz
ghr_v0.16.2_linux_amd64/ghr -u Vita3K -r Vita3K -recreate -n 'Automatic CI builds' -b "$(printf "Corresponding commit: ${{ github.sha }}\nVita3K Build: ${{ env.Build_Variable }}")" continuous artifacts/
ghr_v0.16.2_linux_amd64/ghr -u nishinji -r Vita3K -recreate -n 'Automatic CI builds' -b "$(printf "Corresponding commit: ${{ github.sha }}\nVita3K Build: ${{ env.Build_Variable }}")" continuous artifacts/
if: matrix.repo == 'master'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -251,7 +252,7 @@ jobs:
for f in $files; do
if [[ $f == *macos-latest ]]
then
cp $(basename $f)/$(basename $f).dmg artifacts/vita3k-${{ env.Build_Variable }}-${{ github.sha }}_macos.dmg
cp $(basename $f)/$(basename $f).dmg artifacts/vita3k-${{ env.Build_Variable }}-${{ env.git_short_sha }}_macos.dmg
else
if [[ $f == *ubuntu-latest ]]
then
Expand All @@ -261,18 +262,18 @@ jobs:
else
rm -f $(basename $f)/*.AppImage*
echo "Compressing $f"
(cd $(basename $f) && zip -r ../artifacts/vita3k-${{ env.Build_Variable }}-${{ github.sha }}_ubuntu.zip *)
7z a -mx=9 artifacts/vita3k-${{ env.Build_Variable }}-${{ env.git_short_sha }}_ubuntu.7z $(basename $f)
fi
else
echo "Compressing $f"
(cd $(basename $f) && zip -r ../artifacts/vita3k-${{ env.Build_Variable }}-${{ github.sha }}_windows.zip *)
7z a -mx=9 artifacts/vita3k-${{ env.Build_Variable }}-${{ env.git_short_sha }}_windows.7z $(basename $f)
fi
fi
done
ls -al artifacts/
wget -c https://github.com/tcnksm/ghr/releases/download/v0.16.2/ghr_v0.16.2_linux_amd64.tar.gz
tar xfv ghr_v0.16.2_linux_amd64.tar.gz
ghr_v0.16.2_linux_amd64/ghr -u Vita3K -r Vita3K-builds -n "Build: ${{ env.Build_Variable }}" -b "$(printf "Corresponding commit: [${{ env.Latest_Commit_Message }}](https://github.com/Vita3K/Vita3K/commit/${{ github.sha }}) (${{ env.Commiter_Name }})")" ${{ env.Build_Variable }} artifacts/
ghr_v0.16.2_linux_amd64/ghr -u nishinji -r Vita3K-builds -n "Build: ${{ env.Build_Variable }}" -b "$(printf "Corresponding commit: [${{ env.Latest_Commit_Message }}](https://github.com/Vita3K/Vita3K/commit/${{ github.sha }}) (${{ env.Commiter_Name }})")" ${{ env.Build_Variable }} artifacts/
if: matrix.repo == 'store'
env:
GITHUB_TOKEN: ${{ secrets.STORE_TOKEN }}

0 comments on commit a5004ea

Please sign in to comment.