Trigger build

This commit is contained in:
Dominik Werder
2023-09-06 09:50:42 +02:00
parent 2af9d9ec17
commit b8149b14ad

View File

@@ -73,29 +73,29 @@ jobs:
# repository: paulscherrerinstitute/daqingest.git
# path: build
- run: git clone --branch dev https://github.com/paulscherrerinstitute/daqbuffer.git
working-directory: ${{steps.wdset.gh}}/build
working-directory: ${{steps.wdset.outputs.gh}}/build
- run: git clone --branch dev https://github.com/paulscherrerinstitute/daqingest.git
working-directory: ${{steps.wdset.gh}}/build
working-directory: ${{steps.wdset.outputs.gh}}/build
- run: ls -la $GITHUB_WORKSPACE
- run: find $GITHUB_WORKSPACE -type f -and \( -name \*.rs -or -name \*.toml \)
- run: find ${{steps.wdset.gh}} -type f -and \( -name \*.rs -or -name \*.toml \)
working-directory: ${{steps.wdset.gh}}/build
- run: cargo build --release
working-directory: ${{steps.wdset.gh}}/build/daqingest
- run: find ${{steps.wdset.outputs.gh}} -type f -and \( -name \*.rs -or -name \*.toml \)
working-directory: ${{steps.wdset.outputs.gh}}/build
# - run: cargo build --release
# working-directory: ${{steps.wdset.outputs.gh}}/build/daqingest
- run: mkdir -p target/release
working-directory: ${{steps.wdset.outputs.gh}}/build/daqingest/
- run: cp /usr/bin/cat target/release/daqingest
working-directory: ${{steps.wdset.outputs.gh}}/build/daqingest/
- run: ls -l
working-directory: ${{steps.wdset.gh}}/build/daqingest/target/release
working-directory: ${{steps.wdset.outputs.gh}}/build/daqingest/target/release
- run: ./daqingest --version
working-directory: ${{steps.wdset.gh}}/build/daqingest/target/release
working-directory: ${{steps.wdset.outputs.gh}}/build/daqingest/target/release
- run: echo "daqingest_version=$(./daqingest --version)" >> "$GITHUB_OUTPUT"
id: daqingest_version_set
working-directory: ${{steps.wdset.gh}}/build/daqingest/target/release
working-directory: ${{steps.wdset.outputs.gh}}/build/daqingest/target/release
- uses: actions/upload-artifact@v3
with:
name: daqingest-${{ steps.daqingest_version_set.outputs.daqingest_version }}-amd64-rhel7
path: ${{steps.wdset.gh}}/build/daqingest/target/release/daqingest
- run: curl -o rel.json -L \
-H accept:application/vnd.github+json \
-H authorization:Bearer\\ ${{secrets.github_token}} \
-H X-GitHub-Api-Version:\\ 2022-11-28 \
https://api.github.com/repos/paulscherrerinstitut/daqingest/releases
path: ${{steps.wdset.outputs.gh}}/build/daqingest/target/release/daqingest
- run: curl -o rel.json -L -H 'accept:application/vnd.github+json' -H 'authorization:Bearer ${{secrets.github_token}}' -H 'X-GitHub-Api-Version: 2022-11-28' https://api.github.com/repos/paulscherrerinstitut/daqingest/releases
- run: cat rel.json