@@ -19,13 +19,13 @@ jobs:
1919 container :
2020 image : ghcr.io/linux-nvme/debian.python:latest
2121 steps :
22- - uses : actions/checkout@v6
22+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2323 - name : Mark repo as safe for git
2424 run : git config --global --add safe.directory "$GITHUB_WORKSPACE"
2525 - name : build
2626 run : |
2727 scripts/build.sh -b ${{ matrix.buildtype }} -c ${{ matrix.compiler }} -x
28- - uses : actions/upload-artifact@v6
28+ - uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
2929 name : upload logs
3030 if : failure()
3131 with :
@@ -42,13 +42,13 @@ jobs:
4242 container :
4343 image : ghcr.io/linux-nvme/debian.python:latest
4444 steps :
45- - uses : actions/checkout@v6
45+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4646 - name : Mark repo as safe for git
4747 run : git config --global --add safe.directory "$GITHUB_WORKSPACE"
4848 - name : build
4949 run : |
5050 scripts/build.sh -b ${{ matrix.buildtype }} -c ${{ matrix.compiler }} -x libnvme
51- - uses : actions/upload-artifact@v6
51+ - uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
5252 name : upload logs
5353 if : failure()
5454 with :
@@ -65,27 +65,24 @@ jobs:
6565 - arch : s390x
6666 - arch : ppc64le
6767 steps :
68- - uses : actions/checkout@v6
68+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6969 - name : enable foreign arch
70- uses : docker/setup-qemu-action@v3
70+ uses : docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
7171 - name : Login to GitHub Container Registry
72- uses : docker/login-action@v3
72+ uses : docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
7373 with :
7474 registry : ghcr.io
7575 username : ${{ github.actor }}
7676 password : ${{ secrets.GITHUB_TOKEN }}
7777 - name : compile and run unit tests
78- uses : mosteo-actions/docker-run@v2
79- with :
80- image : ghcr.io/linux-nvme/ubuntu-cross-${{ matrix.arch }}:latest
81- guest-dir : /build
82- host-dir : ${{ github.workspace }}
83- command : |
84- git config --global --add safe.directory /build
85- scripts/build.sh -b release -c gcc -t ${{ matrix.arch }} cross
86- params : " --platform linux/amd64"
87- pull-params : " --platform linux/amd64"
88- - uses : actions/upload-artifact@v6
78+ run : |
79+ docker run --rm \
80+ --platform linux/amd64 \
81+ -v "${{ github.workspace }}:/build" \
82+ -w /build \
83+ ghcr.io/linux-nvme/ubuntu-cross-${{ matrix.arch }}:latest \
84+ sh -c "git config --global --add safe.directory /build && scripts/build.sh -b release -c gcc -t ${{ matrix.arch }} cross"
85+ - uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
8986 name : upload logs
9087 if : failure()
9188 with :
@@ -100,13 +97,13 @@ jobs:
10097 image : ghcr.io/linux-nvme/debian:latest
10198 if : github.ref == 'refs/heads/master'
10299 steps :
103- - uses : actions/checkout@v6
100+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
104101 - name : Mark repo as safe for git
105102 run : git config --global --add safe.directory "$GITHUB_WORKSPACE"
106103 - name : build
107104 run : |
108105 scripts/build.sh -b release -c gcc fallback
109- - uses : actions/upload-artifact@v6
106+ - uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
110107 if : failure()
111108 with :
112109 name : log files
@@ -119,7 +116,7 @@ jobs:
119116 container :
120117 image : ghcr.io/linux-nvme/debian:latest
121118 steps :
122- - uses : actions/checkout@v6
119+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
123120 - name : Mark repo as safe for git
124121 run : git config --global --add safe.directory "$GITHUB_WORKSPACE"
125122 - name : build
@@ -132,7 +129,7 @@ jobs:
132129 container :
133130 image : ghcr.io/linux-nvme/debian:latest
134131 steps :
135- - uses : actions/checkout@v6
132+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
136133 - name : Mark repo as safe for git
137134 run : git config --global --add safe.directory "$GITHUB_WORKSPACE"
138135 - name : build
@@ -145,7 +142,7 @@ jobs:
145142 container :
146143 image : ghcr.io/linux-nvme/debian:latest
147144 steps :
148- - uses : actions/checkout@v6
145+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
149146 - name : Mark repo as safe for git
150147 run : git config --global --add safe.directory "$GITHUB_WORKSPACE"
151148 - name : build
0 commit comments