mirror of
https://github.com/bitwarden/server.git
synced 2025-05-01 09:42:19 -05:00
Test
This commit is contained in:
parent
aa62e6f10d
commit
4a00dfc3ce
32
.github/workflows/build.yml
vendored
32
.github/workflows/build.yml
vendored
@ -306,24 +306,28 @@ jobs:
|
||||
push: true
|
||||
tags: ${{ steps.image-name.outputs.name }}
|
||||
|
||||
- name: TEST STEP
|
||||
- name: Zip project
|
||||
working-directory: ${{ matrix.base_path }}/${{ matrix.project_name }}
|
||||
run: |
|
||||
mkdir linux-amd64
|
||||
docker run --rm --platform linux/amd64 --volume $(pwd):/temp --entrypoint bash \
|
||||
${{ steps.image-name.outputs.name }} -c "cp -r ./ /temp/linux-amd64"
|
||||
mkdir build
|
||||
docker run --rm --platform linux/amd64 --volume $(pwd)/build:/temp --entrypoint bash \
|
||||
${{ steps.image-name.outputs.name }} -c "cp -r ./ /temp"
|
||||
ls -alh
|
||||
ls -alh linux-amd64
|
||||
file linux-amd64/${{ matrix.project_name }}.dll
|
||||
ls -alh build
|
||||
|
||||
mkdir linux-arm
|
||||
docker run --rm --platform linux/arm --volume $(pwd):/temp --entrypoint bash \
|
||||
${{ steps.image-name.outputs.name }} -c "cp -r ./ /temp/linux-arm"
|
||||
file linux-arm/${{ matrix.project_name }}.dll
|
||||
cd build
|
||||
zip -r ${{ matrix.project_name }}.zip .
|
||||
mv ${{ matrix.project_name }}.zip ../../../
|
||||
|
||||
mkdir linux-arm64
|
||||
docker run --rm --platform linux/arm64 --volume $(pwd):/temp --entrypoint bash \
|
||||
${{ steps.image-name.outputs.name }} -c "cp -r ./ /temp/linux-arm64"
|
||||
file linux-arm64/${{ matrix.project_name }}.dll
|
||||
pwd
|
||||
ls -atlh ../../../
|
||||
|
||||
- name: Upload project artifact
|
||||
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
|
||||
with:
|
||||
name: ${{ matrix.project_name }}.zip
|
||||
path: ${{ matrix.base_path }}/${{ matrix.project_name }}/${{ matrix.project_name }}.zip
|
||||
if-no-files-found: error
|
||||
|
||||
- name: Log out of Docker
|
||||
run: docker logout
|
||||
|
Loading…
x
Reference in New Issue
Block a user