Skip to content

Commit

Permalink
Merge branch 'tsukumijima:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuki0824 authored Nov 16, 2023
2 parents fa3ba18 + 691027a commit 24f7aef
Show file tree
Hide file tree
Showing 15 changed files with 415 additions and 504 deletions.
131 changes: 0 additions & 131 deletions .appveyor.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
root = true

[*]
end_of_life = lf
end_of_line = lf
charset = utf-8
indent_style = tab
indent_size = 2
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
ARG IMAGE
FROM ${IMAGE}
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y build-essential cmake cmake-data libpcsclite-dev pkg-config
RUN apt-get update && apt-get install -y build-essential ca-certificates libpcsclite-dev pkg-config wget
RUN wget https://github.com/Kitware/CMake/releases/download/v3.27.4/cmake-3.27.4-linux-aarch64.sh && \
sh ./cmake-3.27.4-linux-aarch64.sh --prefix=/usr/local --skip-license && \
rm ./cmake-3.27.4-linux-aarch64.sh
36 changes: 12 additions & 24 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@ on: push

jobs:
windows:
name: Windows
strategy:
matrix:
os:
- windows-2019
runs-on: ${{ matrix.os }}
name: Windows Package
runs-on: windows-2019
steps:
- name: setup msbuild
uses: microsoft/[email protected]
Expand Down Expand Up @@ -41,18 +37,17 @@ jobs:
path: ${{ steps.get_output_name.outputs.archive_path }}

deb-package:
name: Debian Package
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: setup
run: sudo apt-get install -y build-essential cmake cmake-data libpcsclite-dev pkg-config
- name: build
run: |
cmake -B build
cmake -B build -DUSE_AVX2=on -DCMAKE_INSTALL_PREFIX=/usr
cd build
make
sudo make install
sudo cpack -G DEB -P libaribb25 -C CPackConfig.cmake
sudo make package
- name: get output name
id: get_output_name
run: |
Expand All @@ -65,32 +60,25 @@ jobs:
path: ${{ steps.get_output_name.outputs.deb_path }}

deb-package-arm:
strategy:
matrix:
image:
- arm64v8/ubuntu
name: Debian Package (ARM)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2

- name: setup
uses: docker/build-push-action@v3
with:
context: .github/workflows/
tags: ${{ matrix.image }}:build
build-args: IMAGE=${{ matrix.image }}:20.04
cache-from: type=gha,scope=${{ matrix.image }}
cache-to: type=gha,scope=${{ matrix.image }},mode=max
tags: arm64v8/ubuntu:build
build-args: IMAGE=arm64v8/ubuntu:20.04
cache-from: type=gha,scope=arm64v8/ubuntu
cache-to: type=gha,scope=arm64v8/ubuntu,mode=max
load: true

- name: build
run: |
mkdir build
docker run --rm -i -v $(pwd):/work -w /work/build -e CLICOLOR_FORCE=1 ${{ matrix.image }}:build bash -c 'cmake --version && cmake ..'
docker run --rm -i -v $(pwd):/work -w /work/build -e CLICOLOR_FORCE=1 ${{ matrix.image }}:build bash -c \
'cpack -G DEB -P libaribb25 -C CPackConfig.cmake'
docker run --rm -i -v $(pwd):/work -w /work -e CLICOLOR_FORCE=1 arm64v8/ubuntu:build bash -c \
'cmake -B build -DCMAKE_INSTALL_PREFIX=/usr && cd build && make package'
- name: get output name
id: get_output_name
run: |
Expand Down
30 changes: 21 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ jobs:
name: Ubuntu
strategy:
matrix:
os:
- ubuntu-20.04
- ubuntu-22.04
cc: [gcc, clang]
include:
- cc: gcc
cxx: g++
- cc: clang
cxx: clang++
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
env:
CLICOLOR_FORCE: 1
steps:
Expand All @@ -29,21 +32,21 @@ jobs:
run: |
./build/b1 2>&1 | grep --color=always "ARIB STD-B1"
./build/b25 2>&1 | grep --color=always "ARIB STD-B25"
./build/arib-b1-stream-test --help 2>&1 | grep --color=always "ARIB STD-B1"
./build/arib-b25-stream-test --help 2>&1 | grep --color=always "ARIB STD-B25"
arm:
name: ARM
strategy:
matrix:
image:
- raspbian/stretch
- arm32v7/ubuntu
- arm64v8/ubuntu
- arm64v8/debian
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2

- name: setup
uses: docker/build-push-action@v3
with:
Expand All @@ -53,7 +56,6 @@ jobs:
cache-from: type=gha,scope=${{ matrix.image }}
cache-to: type=gha,scope=${{ matrix.image }},mode=max
load: true

- name: configure
run: |
mkdir build
Expand All @@ -64,12 +66,16 @@ jobs:
run: |
docker run --rm -i -v $(pwd):/work -w /work/build -e CLICOLOR_FORCE=1 ${{ matrix.image }}:build bash -c './b1 2>&1 | grep --color=always "ARIB STD-B1"'
docker run --rm -i -v $(pwd):/work -w /work/build -e CLICOLOR_FORCE=1 ${{ matrix.image }}:build bash -c './b25 2>&1 | grep --color=always "ARIB STD-B25"'
docker run --rm -i -v $(pwd):/work -w /work/build -e CLICOLOR_FORCE=1 ${{ matrix.image }}:build bash -c './arib-b1-stream-test --help 2>&1 | grep --color=always "ARIB STD-B1"'
docker run --rm -i -v $(pwd):/work -w /work/build -e CLICOLOR_FORCE=1 ${{ matrix.image }}:build bash -c './arib-b25-stream-test --help 2>&1 | grep --color=always "ARIB STD-B25"'
macosx:
name: macOS X
macos:
name: macOS
strategy:
matrix:
os: [macos-11, macos-12]
os:
- macos-12
- macos-13
runs-on: ${{ matrix.os }}
env:
CLICOLOR_FORCE: 1
Expand All @@ -85,14 +91,16 @@ jobs:
run: |
./build/b1 2>&1 | grep --color=always "ARIB STD-B1"
./build/b25 2>&1 | grep --color=always "ARIB STD-B25"
./build/arib-b1-stream-test --help 2>&1 | grep --color=always "ARIB STD-B1"
./build/arib-b25-stream-test --help 2>&1 | grep --color=always "ARIB STD-B25"
windows:
name: Windows
strategy:
matrix:
os:
- windows-2022
- windows-2019
- windows-2022
runs-on: ${{ matrix.os }}
steps:
- name: setup msbuild
Expand All @@ -108,3 +116,7 @@ jobs:
x64\Release\b1.exe 2>&1 | findstr "ARIB STD-B1"
Win32\Release\b25.exe 2>&1 | findstr "ARIB STD-B25"
x64\Release\b25.exe 2>&1 | findstr "ARIB STD-B25"
Win32\Release\arib-b1-stream-test.exe --help 2>&1 | findstr "ARIB STD-B1"
x64\Release\arib-b1-stream-test.exe --help 2>&1 | findstr "ARIB STD-B1"
Win32\Release\arib-b25-stream-test.exe --help 2>&1 | findstr "ARIB STD-B25"
x64\Release\arib-b25-stream-test.exe --help 2>&1 | findstr "ARIB STD-B25"
Loading

0 comments on commit 24f7aef

Please sign in to comment.