forked from HaijinW/libaribb25
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'tsukumijima:master' into master
- Loading branch information
Showing
15 changed files
with
415 additions
and
504 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
@@ -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: | | ||
|
@@ -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: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.