Skip to content

Commit

Permalink
Fixed file upload.
Browse files Browse the repository at this point in the history
  • Loading branch information
hipersayanX committed Jun 27, 2024
1 parent e09e3f6 commit 34cefc8
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 56 deletions.
55 changes: 1 addition & 54 deletions .github/workflows/linux-mingw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ jobs:
- compiler: clang
steps:
- uses: actions/checkout@v2
- name: Release build
- name: Build
uses: addnab/docker-run-action@v3
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
Expand Down Expand Up @@ -53,55 +52,3 @@ jobs:
echo
chmod +x ports/ci/linux-mingw/deploy.sh
./ports/ci/linux-mingw/deploy.sh
- name: Daily build
uses: addnab/docker-run-action@v3
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: gcr.io
image: ${{ env.DOCKERIMG }}
options: >-
-v ${{ github.workspace }}:/sources
-e NSIS_VERSION=${{ env.NSIS_VERSION }}
-e TARGET_ARCH=${{ matrix.target_arch }}
-e COMPILER=${{ matrix.compiler }}
-e DOCKERIMG=${{ env.DOCKERIMG }}
-e ARCH_ROOT_URL=${{ env.ARCH_ROOT_URL }}
-e NJOBS=${{ env.NJOBS }}
-e DAILY_BUILD=1
run: |
cd /sources
echo
echo Install dependencies
echo
chmod +x ports/ci/linux-mingw/install_deps.sh
./ports/ci/linux-mingw/install_deps.sh
echo
echo Daily Build
echo
chmod +x ports/ci/linux-mingw/build.sh
./ports/ci/linux-mingw/build.sh
echo
echo Daily Deploy
echo
chmod +x ports/ci/linux-mingw/deploy.sh
./ports/ci/linux-mingw/deploy.sh
- name: Release Upload
uses: softprops/action-gh-release@v1
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
files: packages/windows-gcc/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Daily Build Upload
uses: softprops/action-gh-release@v1
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
with:
body: "${{ github.event.head_commit.message }} (commit: ${{ github.sha }})"
prerelease: true
files: packages/windows-gcc/*
name: Daily Build
tag_name: daily-build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34 changes: 32 additions & 2 deletions .github/workflows/windows-msys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,37 @@ jobs:
mingw-w64-x86_64-cmake
mingw-w64-x86_64-gcc
mingw-w64-x86_64-pkgconf
- name: Build
- name: Release Build
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: ./ports/ci/windows-msys/build.sh
- name: Deploy
- name: Release Deploy
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: ./ports/ci/windows-msys/deploy.sh
- name: Daily Build
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
env:
DAILY_BUILD: 1
run: ./ports/ci/windows-msys/build.sh
- name: Daily Deploy
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
env:
DAILY_BUILD: 1
run: ./ports/ci/windows-msys/deploy.sh
- name: Release Upload
uses: softprops/action-gh-release@v1
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
files: packages/windows-gcc/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Daily Build Upload
uses: softprops/action-gh-release@v1
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
with:
body: "${{ github.event.head_commit.message }} (commit: [${{ github.sha }}](https://github.com/webcamoid/akvirtualcamera/commit/${{ github.sha }}))<hr>**Note**: Ignore the commit information of the tag, the files in the release keep updating with every new build, these packages were built from [${{ github.sha }}](https://github.com/webcamoid/akvirtualcamera/commit/${{ github.sha }}) commit."
prerelease: true
files: packages/windows-gcc/*
name: Daily Build
tag_name: daily-build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 34cefc8

Please sign in to comment.