From f9b1e2a54bf4ce7de030024c4535944b9142fb5f Mon Sep 17 00:00:00 2001 From: Kamil Jarosz Date: Fri, 17 Jan 2025 22:24:19 +0100 Subject: [PATCH 1/2] tests: Increase tolerance for ARM runners --- tests/tests/swfs/avm1/mcl_target_jpg/test.toml | 4 ++-- tests/tests/swfs/avm1/movieclip_begin_gradient_fill/test.toml | 4 ++-- tests/tests/swfs/avm1/movieclip_line_gradient_style/test.toml | 4 ++-- tests/tests/swfs/avm2/pixelbender_dithering/test.toml | 2 +- tests/tests/swfs/avm2/stage3d_bitmap/test.toml | 2 +- tests/tests/swfs/avm2/stage3d_texture_bytearray/test.toml | 4 ++-- .../avm2/stage3d_texture_bytearray_compressed_alpha/test.toml | 4 ++-- .../swfs/visual/drawing_api/gradient_focal_point/test.toml | 2 +- .../swfs/visual/edittext/edittext_border_filters/test.toml | 2 +- tests/tests/swfs/visual/gradient_issue_9892/test.toml | 2 +- .../swfs/visual/shumway_acid_tests/acid_bitmap_fill/test.toml | 2 +- .../visual/shumway_acid_tests/acid_bitmap_fill_2/test.toml | 2 +- .../swfs/visual/shumway_acid_tests/acid_color_0/test.toml | 2 +- .../visual/simple_shapes/gradients/focal_radial/test.toml | 4 ++-- 14 files changed, 20 insertions(+), 20 deletions(-) diff --git a/tests/tests/swfs/avm1/mcl_target_jpg/test.toml b/tests/tests/swfs/avm1/mcl_target_jpg/test.toml index b2ad5df3beb1..489c172b3ffe 100644 --- a/tests/tests/swfs/avm1/mcl_target_jpg/test.toml +++ b/tests/tests/swfs/avm1/mcl_target_jpg/test.toml @@ -1,7 +1,7 @@ num_frames = 11 [image_comparisons.output] -tolerance = 0 +tolerance = 3 [player_options] -with_renderer = { optional = true, sample_count = 1 } \ No newline at end of file +with_renderer = { optional = true, sample_count = 1 } diff --git a/tests/tests/swfs/avm1/movieclip_begin_gradient_fill/test.toml b/tests/tests/swfs/avm1/movieclip_begin_gradient_fill/test.toml index d361427dfa4f..0176052a5af5 100644 --- a/tests/tests/swfs/avm1/movieclip_begin_gradient_fill/test.toml +++ b/tests/tests/swfs/avm1/movieclip_begin_gradient_fill/test.toml @@ -1,7 +1,7 @@ num_frames = 1 [image_comparisons.output] -tolerance = 3 +tolerance = 6 [player_options] -with_renderer = { optional = false, sample_count = 1 } \ No newline at end of file +with_renderer = { optional = false, sample_count = 1 } diff --git a/tests/tests/swfs/avm1/movieclip_line_gradient_style/test.toml b/tests/tests/swfs/avm1/movieclip_line_gradient_style/test.toml index d361427dfa4f..0176052a5af5 100644 --- a/tests/tests/swfs/avm1/movieclip_line_gradient_style/test.toml +++ b/tests/tests/swfs/avm1/movieclip_line_gradient_style/test.toml @@ -1,7 +1,7 @@ num_frames = 1 [image_comparisons.output] -tolerance = 3 +tolerance = 6 [player_options] -with_renderer = { optional = false, sample_count = 1 } \ No newline at end of file +with_renderer = { optional = false, sample_count = 1 } diff --git a/tests/tests/swfs/avm2/pixelbender_dithering/test.toml b/tests/tests/swfs/avm2/pixelbender_dithering/test.toml index bd83309b296d..28b10c0cc393 100644 --- a/tests/tests/swfs/avm2/pixelbender_dithering/test.toml +++ b/tests/tests/swfs/avm2/pixelbender_dithering/test.toml @@ -4,7 +4,7 @@ num_ticks = 1 [image_comparisons.output] tolerance = 1 -max_outliers = 19813 +max_outliers = 19929 [player_options] with_renderer = { optional = false, sample_count = 1 } diff --git a/tests/tests/swfs/avm2/stage3d_bitmap/test.toml b/tests/tests/swfs/avm2/stage3d_bitmap/test.toml index 9a19f77fd6e1..ac0c54417c0e 100644 --- a/tests/tests/swfs/avm2/stage3d_bitmap/test.toml +++ b/tests/tests/swfs/avm2/stage3d_bitmap/test.toml @@ -3,7 +3,7 @@ num_frames = 50 [image_comparisons.output] -tolerance = 2 +tolerance = 4 [player_options] with_renderer = { optional = false, sample_count = 1 } diff --git a/tests/tests/swfs/avm2/stage3d_texture_bytearray/test.toml b/tests/tests/swfs/avm2/stage3d_texture_bytearray/test.toml index e17c8d960f61..4fbe760ab219 100644 --- a/tests/tests/swfs/avm2/stage3d_texture_bytearray/test.toml +++ b/tests/tests/swfs/avm2/stage3d_texture_bytearray/test.toml @@ -1,10 +1,10 @@ num_frames = 1 [image_comparisons.output] -tolerance = 2 +tolerance = 4 [player_options] with_renderer = { optional = true, sample_count = 1 } [required_features] -jpegxr = true \ No newline at end of file +jpegxr = true diff --git a/tests/tests/swfs/avm2/stage3d_texture_bytearray_compressed_alpha/test.toml b/tests/tests/swfs/avm2/stage3d_texture_bytearray_compressed_alpha/test.toml index 8f089bd89508..0c0095383adc 100644 --- a/tests/tests/swfs/avm2/stage3d_texture_bytearray_compressed_alpha/test.toml +++ b/tests/tests/swfs/avm2/stage3d_texture_bytearray_compressed_alpha/test.toml @@ -1,7 +1,7 @@ num_frames = 1 [image_comparisons.output] -tolerance = 2 +tolerance = 4 max_outliers = 66 [player_options] @@ -12,4 +12,4 @@ jpegxr = true # Textures were generated with: # png2atf.exe -i ruffle_logo.png -c d -r -o ruffle_logo.atf -# png2atf.exe -i circle.png -c d -r -o circle.atf \ No newline at end of file +# png2atf.exe -i circle.png -c d -r -o circle.atf diff --git a/tests/tests/swfs/visual/drawing_api/gradient_focal_point/test.toml b/tests/tests/swfs/visual/drawing_api/gradient_focal_point/test.toml index bff3e0efac14..7291ebe44955 100644 --- a/tests/tests/swfs/visual/drawing_api/gradient_focal_point/test.toml +++ b/tests/tests/swfs/visual/drawing_api/gradient_focal_point/test.toml @@ -1,7 +1,7 @@ num_frames = 1 [image_comparisons.output] -tolerance = 7 +tolerance = 13 [player_options] with_renderer = { optional = true, sample_count = 1 } diff --git a/tests/tests/swfs/visual/edittext/edittext_border_filters/test.toml b/tests/tests/swfs/visual/edittext/edittext_border_filters/test.toml index b27170640bb9..2f34cb94fa20 100644 --- a/tests/tests/swfs/visual/edittext/edittext_border_filters/test.toml +++ b/tests/tests/swfs/visual/edittext/edittext_border_filters/test.toml @@ -3,7 +3,7 @@ num_ticks = 1 [image_comparisons."output"] trigger = 1 tolerance = 32 -max_outliers = 16 +max_outliers = 17 [player_options] with_renderer = { optional = false, sample_count = 4 } diff --git a/tests/tests/swfs/visual/gradient_issue_9892/test.toml b/tests/tests/swfs/visual/gradient_issue_9892/test.toml index cf957e023a2b..4dc2ad2cb019 100644 --- a/tests/tests/swfs/visual/gradient_issue_9892/test.toml +++ b/tests/tests/swfs/visual/gradient_issue_9892/test.toml @@ -1,7 +1,7 @@ num_frames = 1 [image_comparisons.output] -tolerance = 6 +tolerance = 12 [player_options] with_renderer = { optional = true, sample_count = 1 } diff --git a/tests/tests/swfs/visual/shumway_acid_tests/acid_bitmap_fill/test.toml b/tests/tests/swfs/visual/shumway_acid_tests/acid_bitmap_fill/test.toml index bc074f3d8561..acc4f94e1188 100644 --- a/tests/tests/swfs/visual/shumway_acid_tests/acid_bitmap_fill/test.toml +++ b/tests/tests/swfs/visual/shumway_acid_tests/acid_bitmap_fill/test.toml @@ -3,7 +3,7 @@ num_frames = 1 [image_comparisons.output] -tolerance = 2 +tolerance = 4 [player_options] with_renderer = { optional = false, sample_count = 1 } diff --git a/tests/tests/swfs/visual/shumway_acid_tests/acid_bitmap_fill_2/test.toml b/tests/tests/swfs/visual/shumway_acid_tests/acid_bitmap_fill_2/test.toml index 7e1f3edaa673..20041b692367 100644 --- a/tests/tests/swfs/visual/shumway_acid_tests/acid_bitmap_fill_2/test.toml +++ b/tests/tests/swfs/visual/shumway_acid_tests/acid_bitmap_fill_2/test.toml @@ -3,7 +3,7 @@ num_frames = 1 [image_comparisons.output] -tolerance = 0 +tolerance = 3 [player_options] with_renderer = { optional = false, sample_count = 1 } diff --git a/tests/tests/swfs/visual/shumway_acid_tests/acid_color_0/test.toml b/tests/tests/swfs/visual/shumway_acid_tests/acid_color_0/test.toml index 595a801664ff..1cfadce96164 100644 --- a/tests/tests/swfs/visual/shumway_acid_tests/acid_color_0/test.toml +++ b/tests/tests/swfs/visual/shumway_acid_tests/acid_color_0/test.toml @@ -3,7 +3,7 @@ num_frames = 1 [image_comparisons.output] -tolerance = 2 +tolerance = 3 max_outliers = 3 [player_options] diff --git a/tests/tests/swfs/visual/simple_shapes/gradients/focal_radial/test.toml b/tests/tests/swfs/visual/simple_shapes/gradients/focal_radial/test.toml index 79d0e12b106f..7291ebe44955 100644 --- a/tests/tests/swfs/visual/simple_shapes/gradients/focal_radial/test.toml +++ b/tests/tests/swfs/visual/simple_shapes/gradients/focal_radial/test.toml @@ -1,7 +1,7 @@ num_frames = 1 [image_comparisons.output] -tolerance = 6 +tolerance = 13 [player_options] -with_renderer = { optional = true, sample_count = 1 } \ No newline at end of file +with_renderer = { optional = true, sample_count = 1 } From 4a9378bb16e90bce129e961003aba10b25749ff9 Mon Sep 17 00:00:00 2001 From: Kamil Jarosz Date: Fri, 17 Jan 2025 21:49:11 +0100 Subject: [PATCH 2/2] build: Build binaries for Linux AArch64 GitHub added new runners with ARM processors, and we are able to easily build binaries for AArch64 that way! --- .github/workflows/release_nightly.yml | 3 +++ .github/workflows/test_rust.yml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release_nightly.yml b/.github/workflows/release_nightly.yml index 04189fb7f2e2..fe6278794b1e 100644 --- a/.github/workflows/release_nightly.yml +++ b/.github/workflows/release_nightly.yml @@ -71,6 +71,9 @@ jobs: - build_name: linux-x86_64 os: ubuntu-24.04 + - build_name: linux-aarch64 + os: ubuntu-24.04-arm + # Mac does two Rust builds to make a universal binary - build_name: macos-x86_64 os: macos-14 diff --git a/.github/workflows/test_rust.yml b/.github/workflows/test_rust.yml index d1b702013296..3a5a3ad11854 100644 --- a/.github/workflows/test_rust.yml +++ b/.github/workflows/test_rust.yml @@ -58,7 +58,7 @@ jobs: fail-fast: false matrix: rust_version: [stable] - os: [ubuntu-24.04, windows-latest, macos-14] + os: [ubuntu-24.04, ubuntu-24.04-arm, windows-latest, macos-14] include: - rust_version: nightly os: ubuntu-24.04 @@ -188,7 +188,7 @@ jobs: strategy: matrix: rust_version: [stable] - os: [ubuntu-24.04, windows-latest, macos-14] + os: [ubuntu-24.04, ubuntu-24.04-arm, windows-latest, macos-14] include: - rust_version: nightly os: ubuntu-24.04