-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
64 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,20 +67,20 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: actions/checkout@v4.2.2 | ||
- uses: actions-rs/toolchain@v1.0.6 | ||
with: | ||
toolchain: stable | ||
target: ${{ matrix.target }} | ||
- uses: microsoft/setup-msbuild@v1.0.2 | ||
- uses: microsoft/setup-msbuild@v2 | ||
if: matrix.msvc_platform | ||
- name: Build static library | ||
uses: actions-rs/cargo@v1 | ||
uses: actions-rs/cargo@v1.0.1 | ||
with: | ||
command: build | ||
args: ${{ matrix.cargo_arg }} --manifest-path=bindings/C/Cargo.toml --target=${{ matrix.target }} | ||
- name: Upload resulting 'mla' | ||
uses: actions/upload-artifact@v3.2.1 | ||
uses: actions/upload-artifact@v4.4.3 | ||
with: | ||
name: mla-${{ matrix.build }} | ||
path: ${{ matrix.path }} | ||
|
@@ -98,15 +98,15 @@ jobs: | |
echo "using version tag ${GITHUB_REF:15}" | ||
echo "version=${GITHUB_REF:15}" >> $GITHUB_OUTPUT | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4.2.2 | ||
- name: Get Changelog Entry | ||
id: changelog_reader | ||
uses: mindsers/changelog-reader-action@v2 | ||
uses: mindsers/changelog-reader-action@v2.2.3 | ||
with: | ||
path: ./mla/CHANGELOG.md | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
uses: actions/create-release@v1.1.4 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
|
@@ -197,7 +197,7 @@ jobs: | |
asset_content_type: application/zip | ||
asset_name: libmla-windows-x86_64-debug-${{ steps.get_version.outputs.VERSION }}.zip | ||
|
||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4.2.2 | ||
- name: Release C Header file | ||
uses: actions/[email protected] | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,21 +28,21 @@ jobs: | |
runs-on: ${{matrix.os}} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: actions/checkout@v4.2.2 | ||
- uses: actions-rs/toolchain@v1.0.6 | ||
with: | ||
toolchain: stable | ||
- name: Build | ||
env: | ||
RUSTFLAGS: -D warnings | ||
uses: actions-rs/cargo@v1 | ||
uses: actions-rs/cargo@v1.0.1 | ||
with: | ||
command: build | ||
args: --release --all --exclude mla-fuzz-afl --verbose | ||
- name: Run tests | ||
run: cargo test --all --exclude mla-fuzz-afl --release --verbose | ||
- name: Upload resulting 'mlar' | ||
uses: actions/upload-artifact@v3.2.1 | ||
uses: actions/upload-artifact@v4.4.3 | ||
with: | ||
name: ${{ matrix.build }} | ||
path: ./target/release/mlar${{ matrix.extension }} | ||
|
@@ -51,8 +51,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: actions/checkout@v4.2.2 | ||
- uses: actions-rs/toolchain@v1.0.6 | ||
with: | ||
toolchain: stable | ||
- name: Run long tests | ||
|
@@ -62,8 +62,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: actions/checkout@v4.2.2 | ||
- uses: actions-rs/toolchain@v1.0.6 | ||
with: | ||
toolchain: stable | ||
- name: Run long tests | ||
|
@@ -72,8 +72,8 @@ jobs: | |
test-bindings-c-cpp-linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: actions/checkout@v4.2.2 | ||
- uses: actions-rs/toolchain@v1.0.6 | ||
with: | ||
toolchain: stable | ||
- name: Run C bindings tests on Linux | ||
|
@@ -103,14 +103,14 @@ jobs: | |
msvc_platform: x64 | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: actions/checkout@v4.2.2 | ||
- uses: actions-rs/toolchain@v1.0.6 | ||
with: | ||
# pin to 1.82 cf. https://github.com/ANSSI-FR/MLA/pull/227#issuecomment-2545916785 | ||
toolchain: 1.82 | ||
default: true | ||
target: ${{ matrix.target }} | ||
- uses: microsoft/setup-msbuild@v1.0.2 | ||
- uses: microsoft/setup-msbuild@v2 | ||
- name: Compile C/CPP bindings test program for Windows | ||
working-directory: bindings/C/tests/windows-msvc/ | ||
run: msbuild mla-bindings-test.sln /p:Platform=${{ matrix.msvc_platform }} /p:Configuration=${{ matrix.version }} | ||
|
@@ -122,14 +122,14 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: actions/checkout@v4.2.2 | ||
- uses: actions-rs/toolchain@v1.0.6 | ||
with: | ||
toolchain: stable | ||
- name: Install dependencies | ||
run: sudo apt-get install llvm | ||
- name: Install cargo-afl binary crate | ||
uses: actions-rs/[email protected] | ||
uses: actions-rs/[email protected].2 | ||
with: | ||
crate: cargo-afl | ||
version: latest | ||
|
@@ -142,8 +142,8 @@ jobs: | |
fmt: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: actions/checkout@v4.2.2 | ||
- uses: actions-rs/toolchain@v1.0.6 | ||
with: | ||
toolchain: stable | ||
components: rustfmt | ||
|
@@ -153,29 +153,29 @@ jobs: | |
audit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4.2.2 | ||
- name: Security audit | ||
uses: actions-rs/audit-check@v1 | ||
uses: actions-rs/audit-check@v1.2.0 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
clippy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: actions/checkout@v4.2.2 | ||
- uses: actions-rs/toolchain@v1.0.6 | ||
with: | ||
toolchain: stable | ||
components: clippy | ||
- name: Install dependencies | ||
run: sudo apt-get install llvm | ||
- name: Install cargo-afl binary crate | ||
uses: actions-rs/[email protected] | ||
uses: actions-rs/[email protected].2 | ||
with: | ||
crate: cargo-afl | ||
version: latest | ||
use-tool-cache: true | ||
- uses: actions-rs/cargo@v1 | ||
- uses: actions-rs/cargo@v1.0.1 | ||
with: | ||
command: clippy | ||
args: --all-targets -- -D warnings | ||
|
@@ -184,8 +184,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: actions/checkout@v4.2.2 | ||
- uses: actions-rs/toolchain@v1.0.6 | ||
with: | ||
toolchain: stable | ||
- name: Dry-run publish curve25519-parser | ||
|