Skip to content

Commit

Permalink
Merge branch 'release/2023.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Sep 8, 2023
2 parents 05093c9 + 0301bef commit 658da9d
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 7 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ jobs:
name: ${{ matrix.os }}-hisui-binary-${{ steps.vars.outputs.sha_short }}
path: release/${{ matrix.os }}/hisui
if-no-files-found: error
- name: Upload Lyra model_coeffs with hash
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-lyra-model-coeffs
path: third_party/lyra/lyra/lyra/model_coeffs
if-no-files-found: error
- name: Upload tarball
uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -185,6 +191,22 @@ jobs:
chmod 755 release/ubuntu-20.04_arm64/hisui
chmod 755 release/ubuntu-22.04_x86_64/hisui
chmod 755 release/ubuntu-22.04_arm64/hisui
- uses: actions/download-artifact@v3
with:
name: ubuntu-20.04_x86_64-lyra-model-coeffs
path: release/ubuntu-20.04_x86_64/lyra/model_coeffs
- uses: actions/download-artifact@v3
with:
name: ubuntu-20.04_arm64-lyra-model-coeffs
path: release/ubuntu-20.04_arm64/lyra/model_coeffs
- uses: actions/download-artifact@v3
with:
name: ubuntu-22.04_x86_64-lyra-model-coeffs
path: release/ubuntu-22.04_x86_64/lyra/model_coeffs
- uses: actions/download-artifact@v3
with:
name: ubuntu-22.04_arm64-lyra-model-coeffs
path: release/ubuntu-22.04_arm64/lyra/model_coeffs
- name: Get Versions
shell: bash
id: versions
Expand Down
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@

## develop

## 2023.2.1

- [FIX] docker image 生成を修正する
- @haruymaa

## 2023.2.0

- [UPDATE] 依存ライブラリの更新をする
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
HISUI_VERSION=2023.2.0
HISUI_VERSION=2023.2.1

BOOST_VERSION=1.83.0
CLI11_VERSION=2.3.2
Expand Down
2 changes: 2 additions & 0 deletions build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,9 @@ cmake --build .
if [ $FLAG_PACKAGE -eq 1 ]; then
rm -rf "hisui-${HISUI_VERSION}"
mkdir "hisui-${HISUI_VERSION}"
mkdir "hisui-${HISUI_VERSION}/lyra"
cp hisui ../../LICENSE ../../NOTICE.md "hisui-${HISUI_VERSION}"
cp -r ../../third_party/lyra/lyra/lyra/model_coeffs "hisui-${HISUI_VERSION}/lyra"
tar cvf "hisui-${HISUI_VERSION}_$PACKAGE.tar.gz" "hisui-${HISUI_VERSION}"
rm -rf "hisui-${HISUI_VERSION}"
fi
4 changes: 2 additions & 2 deletions doc/USE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Hisui は docker image を用意しています。これを使うことで気軽
- https://hub.docker.com/r/shiguredo/hisui

```
docker run -v /home/shiguredo/sora-2022.2.3/archive:/hisui -it shiguredo/hisui:2023.2.0-ubuntu-22.04 -f /hisui/CSX77QY9F57V5BT72S62C28VS4/report-CSX77QY9F57V5BT72S62C28VS4.json
docker run -v /home/shiguredo/sora-2022.2.3/archive:/hisui -it shiguredo/hisui:2023.2.1-ubuntu-22.04 -f /hisui/CSX77QY9F57V5BT72S62C28VS4/report-CSX77QY9F57V5BT72S62C28VS4.json
```

- -v で Sora の録画データがある archive フォルダを指定して下さい
Expand All @@ -23,7 +23,7 @@ docker run -v /home/shiguredo/sora-2022.2.3/archive:/hisui -it shiguredo/hisui:2
## docker 経由で help を見る

```
$ docker run -it shiguredo/hisui:2023.2.0-ubuntu-22.04 --help
$ docker run -it shiguredo/hisui:2023.2.1-ubuntu-22.04 --help
hisui
Usage: /usr/local/bin/hisui [OPTIONS]
Expand Down
5 changes: 3 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ ARG UBUNTU_VERSION
ARG TARGETARCH
COPY release/ubuntu-${UBUNTU_VERSION}_x86_64/hisui /tmp/hisui-amd64
COPY release/ubuntu-${UBUNTU_VERSION}_arm64/hisui /tmp/hisui-arm64
COPY third_party/lyra/lyra/lyra/model_coeffs /usr/local/lib/lyra/model_coeffs
RUN cp /tmp/hisui-$TARGETARCH /usr/local/bin/hisui
COPY release/ubuntu-${UBUNTU_VERSION}_x86_64/lyra/model_coeffs /tmp/amd64/lyra/model_coeffs
COPY release/ubuntu-${UBUNTU_VERSION}_arm64/lyra/model_coeffs /tmp/arm64/lyra/model_coeffs
RUN cp /tmp/hisui-${TARGETARCH} /usr/local/bin/hisui && mkdir -p /usr/local/lib && cp -r /tmp/${TARGETARCH}/lyra /usr/local/lib

ENTRYPOINT ["/usr/bin/tini", "--", "/usr/local/bin/hisui"]
19 changes: 19 additions & 0 deletions docker/Dockerfile.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
ARG UBUNTU_VERSION
FROM ubuntu:$UBUNTU_VERSION
LABEL maintainer="HARUYAMA Seigo <[email protected]>"

WORKDIR /usr/local/bin
RUN apt update \
&& apt install -y tini \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /var/cache/apt/archives/*

ENV HISUI_LYRA_MODEL_COEFFS_PATH /usr/local/lib/lyra/model_coeffs
ARG UBUNTU_VERSION
ARG TARGETARCH
COPY release/ubuntu-${UBUNTU_VERSION}_x86_64/hisui /tmp/hisui-amd64
COPY release/ubuntu-${UBUNTU_VERSION}_arm64/hisui /tmp/hisui-arm64
COPY third_party/lyra/lyra/lyra/model_coeffs /usr/local/lib/lyra/model_coeffs
RUN cp /tmp/hisui-$TARGETARCH /usr/local/bin/hisui

ENTRYPOINT ["/usr/bin/tini", "--", "/usr/local/bin/hisui"]
2 changes: 1 addition & 1 deletion src/version/version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ std::string get_fdkaac_aacenc_version() {
#endif

std::string get_hisui_version() {
return "2023.2.0";
return "2023.2.1";
}

std::string get_cppmp4_version() {
Expand Down
2 changes: 1 addition & 1 deletion test/version/version_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
BOOST_AUTO_TEST_SUITE(version)

BOOST_AUTO_TEST_CASE(get_hisui_version) {
BOOST_REQUIRE_EQUAL("2023.2.0", hisui::version::get_hisui_version());
BOOST_REQUIRE_EQUAL("2023.2.1", hisui::version::get_hisui_version());
}

BOOST_AUTO_TEST_SUITE_END()

0 comments on commit 658da9d

Please sign in to comment.