diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml deleted file mode 100644 index 52f9e3f..0000000 --- a/.azure-pipelines.yml +++ /dev/null @@ -1,58 +0,0 @@ -trigger: - batch: true - branches: - include: - - main - tags: - include: - - v* - -pr: - branches: - include: - - main - -pool: - vmImage: ubuntu-latest - -steps: -- script: | - set -ex - ./eng/build.sh - displayName: build - -- script: | - set -ex - cargo test --release --target x86_64-unknown-linux-musl - sudo target/x86_64-unknown-linux-musl/release/avml --compress output.lime - displayName: test - -- task: PublishPipelineArtifact@0 - displayName: publish avml - inputs: - targetPath: target/x86_64-unknown-linux-musl/release/avml - artifactName: avml - -- task: PublishPipelineArtifact@0 - displayName: publish avml-minimal - inputs: - targetPath: target/x86_64-unknown-linux-musl/release/avml-minimal - artifactName: avml-minimal - -- task: PublishPipelineArtifact@0 - displayName: publish avml-convert - inputs: - targetPath: target/x86_64-unknown-linux-musl/release/avml-convert - artifactName: avml-convert - -- task: PublishPipelineArtifact@0 - displayName: publish avml-upload - inputs: - targetPath: target/x86_64-unknown-linux-musl/release/avml-upload - artifactName: avml-upload - -- task: ComponentGovernanceComponentDetection@0 - inputs: - scanType: 'Register' - verbosity: 'Verbose' - alertWarningLevel: 'High' diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 669bd15..ae99e0c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,6 +3,8 @@ name: build on: push: branches: [ main ] + tags: + - 'v*' pull_request: branches: [ main ] diff --git a/eng/build.sh b/eng/build.sh index c0c8f85..829523a 100755 --- a/eng/build.sh +++ b/eng/build.sh @@ -9,10 +9,11 @@ rustup component add rustfmt rustup target add x86_64-unknown-linux-musl cargo fmt -- --check -cargo clippy -- -D clippy::pedantic -A clippy::missing_errors_doc cargo build --release --no-default-features --target x86_64-unknown-linux-musl --locked cp target/x86_64-unknown-linux-musl/release/avml target/x86_64-unknown-linux-musl/release/avml-minimal cargo build --release --target x86_64-unknown-linux-musl --locked +cargo test --release --target x86_64-unknown-linux-musl --locked +cargo clippy -- -D clippy::pedantic -A clippy::missing_errors_doc strip target/x86_64-unknown-linux-musl/release/avml strip target/x86_64-unknown-linux-musl/release/avml-minimal strip target/x86_64-unknown-linux-musl/release/avml-convert