[FFmpeg-devel] [PATCH] forgejo/workflows: add initial rudimentary CI
Timo Rothenpieler
timo at rothenpieler.org
Mon Jul 21 22:24:23 EEST 2025
On 7/21/2025 7:44 PM, Timo Rothenpieler wrote:
> On 7/21/2025 7:02 PM, Leo Izen wrote:
>> On 7/21/25 12:37, Timo Rothenpieler wrote:
>>> It runs basic fate with no special dependencies enabled on x86_64 and
>>> aarch64.
>>> ---
>>> .forgejo/workflows/test.yml | 39 +++++++++++++++++++++++++++++++++++++
>>> .gitignore | 1 +
>>> 2 files changed, 40 insertions(+)
>>> create mode 100644 .forgejo/workflows/test.yml
>>>
>>> diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml
>>> new file mode 100644
>>> index 0000000000..f9e032b78c
>>> --- /dev/null
>>> +++ b/.forgejo/workflows/test.yml
>>> @@ -0,0 +1,39 @@
>>> +on:
>>> + push:
>>> + branches:
>>> + - master
>>> + pull_request:
>>> +
>>> +jobs:
>>> + run_fate:
>>> + strategy:
>>> + fail-fast: false
>>> + matrix:
>>> + runner: [linux-amd64,linux-aarch64]
>>> + runs-on: ${{ matrix.runner }}
>>> + steps:
>>> + - name: Checkout
>>> + uses: actions/checkout at v4
>>> + - name: Configure
>>> + run: ./configure
>>> + - name: Build
>>> + run: make -j$(nproc)
>>> + - name: Restore Cached Fate-Suite
>>> + uses: actions/cache/restore at v4
>>> + with:
>>> + path: fate-suite
>>> + key: fate-suite
>>> + restore-keys: |
>>> + fate-suite-
>>> + - name: Sync Fate-Suite
>>> + id: fate
>>> + run: |
>>> + make fate-rsync SAMPLES=$PWD/fate-suite
>>> + echo "hash=$(find fate-suite -type f | sha256sum | cut -d'
>>> ' -f1)" >> $GITHUB_OUTPUT
>>
>> $GITHUB_OUTPUT is probably a copypaste issue.
>
> Negative, Forgejo Runners are fully compatible with GHA, so this is how
> you do it.
By now, both FORGEJO_OUTPUT and GITHUB_OUTPUT work, so I think renaming
this makes it look a bit nicer. Will amend locally.
>>> + - name: Cache Fate-Suite
>>> + uses: actions/cache/save at v4
>>> + with:
>>> + path: fate-suite
>>> + key: fate-suite-${{ steps.fate.outputs.hash }}
>>> + - name: Run Fate
>>> + run: make fate SAMPLES=$PWD/fate-suite -j$(nproc)
>>> diff --git a/.gitignore b/.gitignore
>>> index 59c89da5e0..4aa49c52c7 100644
>>> --- a/.gitignore
>>> +++ b/.gitignore
>>> @@ -45,3 +45,4 @@
>>> /libavcodec/vulkan/*.c
>>> /libavfilter/vulkan/*.c
>>> /.*/
>>> +!/.forgejo/
>>
>> _______________________________________________
>> ffmpeg-devel mailing list
>> ffmpeg-devel at ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>
>> To unsubscribe, visit link above, or email
>> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-devel
mailing list