File offset is set in piper-phoneize CMake build

pull/276/head
Michael Hansen 6 months ago
parent 0987603ebd
commit cf5b143740

@ -61,67 +61,67 @@ jobs:
asset_path: dist/piper_armv7.tar.gz asset_path: dist/piper_armv7.tar.gz
asset_name: piper_linux_armv7l.tar.gz asset_name: piper_linux_armv7l.tar.gz
asset_content_type: application/octet-stream asset_content_type: application/octet-stream
# build_windows: build_windows:
# runs-on: windows-latest runs-on: windows-latest
# name: "windows build: ${{ matrix.arch }}" name: "windows build: ${{ matrix.arch }}"
# needs: create_release # we need to know the upload URL needs: create_release # we need to know the upload URL
# strategy: strategy:
# fail-fast: true fail-fast: true
# matrix: matrix:
# arch: [x64] arch: [x64]
# steps: steps:
# - uses: actions/checkout@v3 - uses: actions/checkout@v3
# - name: configure - name: configure
# run: | run: |
# cmake -Bbuild -DCMAKE_INSTALL_PREFIX=_install/piper cmake -Bbuild -DCMAKE_INSTALL_PREFIX=_install/piper
# - name: build - name: build
# run: | run: |
# cmake --build build --config Release cmake --build build --config Release
# - name: install - name: install
# run: | run: |
# cmake --install build cmake --install build
# - name: package - name: package
# run: | run: |
# cd _install cd _install
# Compress-Archive -LiteralPath piper -DestinationPath piper_windows_amd64.zip Compress-Archive -LiteralPath piper -DestinationPath piper_windows_amd64.zip
# - name: upload - name: upload
# uses: actions/upload-release-asset@v1 uses: actions/upload-release-asset@v1
# env: env:
# GITHUB_TOKEN: ${{ github.token }} GITHUB_TOKEN: ${{ github.token }}
# with: with:
# upload_url: ${{ needs.create_release.outputs.upload_url }} upload_url: ${{ needs.create_release.outputs.upload_url }}
# asset_path: _install/piper_windows_amd64.zip asset_path: _install/piper_windows_amd64.zip
# asset_name: piper_windows_amd64.zip asset_name: piper_windows_amd64.zip
# asset_content_type: application/zip asset_content_type: application/zip
# build_macos: build_macos:
# name: "macos build: ${{ matrix.arch }}" name: "macos build: ${{ matrix.arch }}"
# runs-on: macos-latest runs-on: macos-latest
# needs: create_release # we need to know the upload URL needs: create_release # we need to know the upload URL
# strategy: strategy:
# fail-fast: true fail-fast: true
# matrix: matrix:
# arch: [x64, aarch64] arch: [x64, aarch64]
# steps: steps:
# - uses: actions/checkout@v3 - uses: actions/checkout@v3
# - name: configure - name: configure
# run: | run: |
# cmake -Bbuild -DCMAKE_INSTALL_PREFIX=_install/piper cmake -Bbuild -DCMAKE_INSTALL_PREFIX=_install/piper
# - name: build - name: build
# run: | run: |
# cmake --build build --config Release cmake --build build --config Release
# - name: install - name: install
# run: | run: |
# cmake --install build cmake --install build
# - name: package - name: package
# run: | run: |
# cd _install && \ cd _install && \
# tar -czf piper_macos_${{ matrix.arch }}.tar.gz piper/ tar -czf piper_macos_${{ matrix.arch }}.tar.gz piper/
# - name: upload - name: upload
# uses: actions/upload-release-asset@v1 uses: actions/upload-release-asset@v1
# env: env:
# GITHUB_TOKEN: ${{ github.token }} GITHUB_TOKEN: ${{ github.token }}
# with: with:
# upload_url: ${{ needs.create_release.outputs.upload_url }} upload_url: ${{ needs.create_release.outputs.upload_url }}
# asset_path: _install/piper_macos_${{ matrix.arch }}.tar.gz asset_path: _install/piper_macos_${{ matrix.arch }}.tar.gz
# asset_name: piper_macos_${{ matrix.arch }}.tar.gz asset_name: piper_macos_${{ matrix.arch }}.tar.gz
# asset_content_type: application/octet-stream asset_content_type: application/octet-stream

@ -12,7 +12,7 @@ RUN apt-get update && \
WORKDIR /build WORKDIR /build
COPY ./ ./ COPY ./ ./
RUN cmake -Bbuild -DCMAKE_INSTALL_PREFIX=install -D_FILE_OFFSET_BITS=64 RUN cmake -Bbuild -DCMAKE_INSTALL_PREFIX=install
RUN cmake --build build --config Release RUN cmake --build build --config Release
RUN cmake --install build RUN cmake --install build

Loading…
Cancel
Save