Skip to content
Merged
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
27 changes: 25 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
build_binary_windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
target:
- x86_64-pc-windows-msvc
Expand Down Expand Up @@ -140,13 +141,35 @@
name: ${{ matrix.target }}
path: target/${{ matrix.target }}/release/znotify-${{ matrix.target }}.exe

verify_artifacts:
if: github.event_name == 'pull_request'
needs: [ build_binary_linux, build_binary_macos, build_binary_windows ]
runs-on: ubuntu-latest
steps:
- name: Download PR artifacts
uses: actions/download-artifact@v7.0.0
with:
path: binary
- name: Verify platform binaries
shell: bash
run: |
for target in x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu; do
test -s "binary/$target/release/znotify-$target"
done
for target in x86_64-apple-darwin aarch64-apple-darwin; do
test -s "binary/$target/znotify-$target"
done
for target in x86_64-pc-windows-msvc aarch64-pc-windows-msvc; do
test -s "binary/$target/znotify-$target.exe"
done

release_nightly:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
if: github.event_name == 'push'
needs: [ build_binary_linux, build_binary_macos, build_binary_windows ]
runs-on: ubuntu-latest
steps:
- name: Get all artifacts
uses: actions/download-artifact@v4.3.0
uses: actions/download-artifact@v7.0.0
with:
path: binary

Expand Down Expand Up @@ -181,7 +204,7 @@
pip install -r scripts/requirements.txt

- name: Get all artifacts
uses: actions/download-artifact@v4.3.0
uses: actions/download-artifact@v7.0.0
with:
path: binary

Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading