Skip to content

Commit

Permalink
👷 Add make dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed May 16, 2023
1 parent e80efc9 commit 15e22bf
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
- "**.md"
workflow_dispatch:

# https://github.com/softprops/action-gh-release/issues/236
permissions:
contents: write

jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -31,3 +35,34 @@ jobs:
- uses: codecov/codecov-action@v3
with:
gcov: true
build:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt update
sudo apt install check
# gcc-mingw-w64-x86-64-win32
- name: Build
run: |
autoreconf -vif
./configure
make dist
make
# ./configure --build=x86_64-pc-linux-gnu --host=x86_64-w64-mingw32
# make
- uses: actions/upload-artifact@v3
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
with:
path: |
x264
*.tar.gz
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
# body_path: CHANGELOG.md
files: |
x264
*.tar.gz
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
cmake_minimum_required(VERSION 3.10)
if(DEFINED ENV{GITHUB_REF_NAME})
set(VERSION $ENV{GITHUB_REF_NAME})
else()
set(VERSION 0.0.0.0)
endif()
project(
x264-dsp
VERSION 0.0.0.0
VERSION ${VERSION}
DESCRIPTION x264-dsp
HOMEPAGE_URL https://github.com/Freed-Wu/x264-dsp
LANGUAGES C ASM)
Expand Down

0 comments on commit 15e22bf

Please sign in to comment.