Skip to content

Commit c5253ad

Browse files
authored
bump to libsodium-1.0.20-stable (03-Apr-2025) (pyca#866)
This also adds arm64 windows builds to the msvc zip
1 parent 38dae08 commit c5253ad

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+4305
-2152
lines changed
4.08 MB
Binary file not shown.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Autocloser
2+
on: [issues]
3+
jobs:
4+
autoclose:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Autoclose issues that did not follow issue template
8+
uses: roots/[email protected]
9+
with:
10+
repo-token: ${{ secrets.GITHUB_TOKEN }}
11+
issue-close-message: "This issue was automatically closed because it did not follow the issue template. We use the issue tracker exclusively for bug reports and feature additions that have been previously discussed. However, this issue appears to be a support request. Please use the discussion forums for support requests."
12+
issue-pattern: ".*(do we replicate the issue|Expected behavior|raised as discussion|# Impact).*"

src/libsodium/.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ jobs:
4141
run: sudo apt-get update
4242

4343
- name: Install Zig
44-
uses: goto-bus-stop/setup-zig@d866436887ad1b24590684f9d00480376663dd36
44+
uses: mlugg/setup-zig@v1
4545
with:
46-
version: 0.12.0
46+
version: 0.14.0
4747

4848
- name: Autogen
4949
run: ./autogen.sh -s
@@ -53,6 +53,7 @@ jobs:
5353
zig build
5454
zig build -Dtarget=x86_64-linux
5555
zig build -Dtarget=aarch64-linux
56+
zig build -Dtarget=x86-windows
5657
zig build -Dtarget=x86_64-windows
5758
zig build -Dtarget=aarch64-windows
5859
zig build -Dtarget=x86_64-macos
@@ -171,7 +172,7 @@ jobs:
171172
- name: Install Android NDK
172173
run: |
173174
mkdir /tmp/android && cd /tmp/android
174-
curl -o ndk.zip -L https://dl.google.com/android/repository/android-ndk-r25c-linux.zip
175+
curl -o ndk.zip -L https://dl.google.com/android/repository/android-ndk-r27c-linux.zip
175176
unzip ndk.zip && rm -f *.zip && mv android-ndk* ndk
176177
177178
- name: Android compilation
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CIFuzz
2+
3+
on:
4+
push:
5+
branches: [stable, next]
6+
pull_request:
7+
branches: [stable, next]
8+
9+
jobs:
10+
Fuzzing:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Build Fuzzers
14+
id: build
15+
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
16+
with:
17+
oss-fuzz-project-name: "libsodium"
18+
dry-run: false
19+
language: c++
20+
- name: Run Fuzzers
21+
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
22+
with:
23+
oss-fuzz-project-name: "libsodium"
24+
fuzz-seconds: 300
25+
dry-run: false
26+
language: c++
27+
- name: Upload Crash
28+
uses: actions/upload-artifact@v4
29+
if: failure() && steps.build.outcome == 'success'
30+
with:
31+
name: artifacts
32+
path: ./out/artifacts

src/libsodium/.github/workflows/codeql-analysis.yml

Lines changed: 35 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,47 @@ name: "CodeQL scan"
22

33
on:
44
push:
5+
branches: [ "master stable next" ]
56
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [ "master stable next" ]
69
schedule:
7-
- cron: "0 17 * * 2"
10+
- cron: '0 17 * * 2'
811

912
jobs:
10-
CodeQL-Build:
11-
runs-on: ubuntu-latest
13+
analyze:
14+
name: Analyze
15+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
16+
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
17+
permissions:
18+
actions: read
19+
contents: read
20+
security-events: write
21+
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
language: [ 'c-cpp' ]
1226

1327
steps:
14-
- name: Checkout repository
15-
uses: actions/checkout@v4
16-
with:
17-
fetch-depth: 2
28+
- name: Checkout repository
29+
uses: actions/checkout@v4
30+
with:
31+
fetch-depth: 2
1832

19-
- name: Initialize CodeQL
20-
uses: github/codeql-action/init@v2
21-
with:
22-
languages: cpp
33+
# Initializes the CodeQL tools for scanning.
34+
- name: Initialize CodeQL
35+
uses: github/codeql-action/init@v2
36+
with:
37+
languages: ${{ matrix.language }}
2338

24-
- run: |
25-
./autogen.sh -s
26-
env CPPFLAGS="-DDEV_MODE=1" ./configure --disable-dependency-tracking
27-
make -j $(nproc) check
39+
- run: |
40+
echo "Run, Build Application using script"
41+
./autogen.sh -s
42+
env CPPFLAGS="-DDEV_MODE=1" ./configure --disable-dependency-tracking
43+
make -j $(nproc) check
2844
29-
- name: Perform CodeQL Analysis
30-
uses: github/codeql-action/analyze@v2
45+
- name: Perform CodeQL Analysis
46+
uses: github/codeql-action/analyze@v2
47+
with:
48+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)