Skip to content

Commit d9edc8e

Browse files
committed
harden ci configuration
1 parent 1724042 commit d9edc8e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
- push
55
- pull_request
66

7+
permissions:
8+
contents: read
9+
710
env:
811
# Enable backtraces for easier debugging
912
RUST_BACKTRACE: 1
@@ -16,9 +19,9 @@ jobs:
1619
fail-fast: false
1720
matrix:
1821
libgccjit_version:
19-
- { gcc: "libgccjit.so", extra: "" }
20-
- { gcc: "libgccjit_without_int128.so", extra: "" }
21-
- { gcc: "libgccjit12.so", extra: "--no-default-features" }
22+
- { gcc: "libgccjit.so", extra: "", artifacts_branch: "master" }
23+
- { gcc: "libgccjit_without_int128.so", extra: "", artifacts_branch: "master-without-128bit-integers" }
24+
- { gcc: "libgccjit12.so", extra: "--no-default-features", artifacts_branch: "gcc12" }
2225
commands: [
2326
"--mini-tests",
2427
"--std-tests",
@@ -49,6 +52,8 @@ jobs:
4952
name: ${{ matrix.libgccjit_version.gcc }}
5053
path: gcc-build
5154
repo: antoyo/gcc
55+
branch: ${{ matrix.libgccjit_version.artifacts_branch }}
56+
event: push
5257
search_artifacts: true # Because, instead, the action only check the last job ran and that won't work since we want multiple artifacts.
5358

5459
- name: Setup path to libgccjit

0 commit comments

Comments
 (0)