Skip to content

Commit

Permalink
Another one.. build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Harze2k authored May 5, 2024
1 parent c7e49bd commit 1bdb770
Showing 1 changed file with 31 additions and 20 deletions.
51 changes: 31 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build
name: build_mpv
on:
push:
branches:
Expand All @@ -25,7 +25,7 @@ on:
- 'RELEASE_NOTES'

jobs:
msys2:
build:
runs-on: windows-latest
strategy:
fail-fast: false
Expand All @@ -36,7 +36,7 @@ jobs:
- ucrt64
defaults:
run:
shell: msys2 {0}
shell: build {0}
steps:
- name: Disable autocrlf
shell: pwsh
Expand Down Expand Up @@ -95,23 +95,34 @@ jobs:
run: |
cat ./build/meson-logs/testlog.txt
- name: 'Tar files'
run: tar -cvf my_MPVBuild.tar -C /d/a/mpv/mpv/build/ .

- name: 'Zip files'
run: 7z a -tzip my_MPVBuild.zip ./build/*
working-directory: /d/a/mpv/mpv/


- name: 'Upload Artifact'
uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v3
with:
name: my-artifact
path: my_MPVBuild.tar

- name: 'Upload Artifact'
uses: actions/upload-artifact@v4
name: Build
path: libmpv
if-no-files-found: warn
overwrite: true

- uses: actions/upload-artifact@v3
with:
name: my-artifact
path: my_MPVBuild.zip
name: Build
path: dist
if-no-files-found: warn
overwrite: true

release:
runs-on: windows-latest
permissions:
contents: write

needs: build

steps:
- uses: actions/download-artifact@v3
with:
name: Build
path: build
- run: zip -r build.zip build/
- uses: ncipollo/release-action@v1
with:
artifacts: "build.zip"

0 comments on commit 1bdb770

Please sign in to comment.