Skip to content

Commit

Permalink
almost normal debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
dgkf committed Oct 11, 2023
1 parent cef3b5b commit 155522c
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ env:
preview: ${{ !startsWith(github.ref, 'refs/tags/') }}

jobs:
dist:
name: Dist
build:
name: Build
env:
# For some builds, we use cross to test on 32-bit and big-endian
# systems.
Expand Down Expand Up @@ -95,8 +95,7 @@ jobs:
- name: Show command used for Cargo
run: |
echo "cargo command is: ${{ env.CARGO }}"
echo "target flag is: ${{ env.TARGET_FLAGS }}"
echo "build command: ${{ env.CARGO }} build --release --locked --target ${{ matrix.target }}"
- name: Run cargo test
if: "!matrix.skip_tests"
Expand All @@ -105,6 +104,7 @@ jobs:
- name: Set profile.release.strip = true
shell: bash
run: |
mkdir -p .cargo
cat >> .cargo/config.toml <<EOF
[profile.release]
strip = true
Expand Down Expand Up @@ -134,31 +134,31 @@ jobs:

publish:
name: Publish
needs: [dist]
needs: [build]
runs-on: ubuntu-latest
steps:
- name: test
shell: bash
run: echo here

# - name: Checkout sources
# uses: actions/checkout@v4
- name: Checkout sources
uses: actions/checkout@v4

# - uses: actions/download-artifact@v3
- uses: actions/download-artifact@v3

# - name: Upload binaries to release
# uses: svenstaro/upload-release-action@v2
# if: env.preview == 'false'
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# file: dist/*
# file_glob: true
# tag: ${{ github.ref_name }}
# overwrite: true
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
if: env.preview == 'false'
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/*
file_glob: true
tag: ${{ github.ref_name }}
overwrite: true

# - name: Upload binaries as artifact
# uses: actions/upload-artifact@v3
# if: env.preview == 'true'
# with:
# name: release
# path: dist/*
- name: Upload binaries as artifact
uses: actions/upload-artifact@v3
if: env.preview == 'true'
with:
name: release
path: dist/*

0 comments on commit 155522c

Please sign in to comment.