Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,7 @@ jobs:

- id: build
run: |
rustc --print cfg | grep = > rustc.vars
source rustc.vars

if [ -z "${target_env}" ]; then
export HOST="${target_arch}-${target_vendor}-${target_os}"
else
export HOST="${target_arch}-${target_vendor}-${target_os}-${target_env}"
fi

export HOST=$(rustc -vV | grep host: | awk '{print $2}')
if [ "$HOST" = "$TARGET" ]; then
cargo build --release --target ${TARGET}
else
Expand All @@ -100,9 +92,8 @@ jobs:
tar cvzf $ASSET_NAME xsnippet-api
fi
gh release upload $RELEASE_TAG $ASSET_NAME
popd

echo "asset_path=$PWD/$ASSET_NAME" >> $GITHUB_OUTPUT
popd
env:
ASSET_NAME: ${{ matrix.name }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ jobs:
run: |
python -m alembic.config upgrade head

- id: debug
run: |
export TARGET=$(rustc -vV | grep host: | awk '{print $2}')
cargo build --release --target ${TARGET}

- uses: actions-rs/cargo@v1
with:
command: test
Expand Down
Loading