6767 floki*.zip
6868 floki*.tar.gz
6969
70+
71+ rpm :
72+ name : Build and test RPM using cargo generate-rpm
73+ runs-on : ubuntu-24.04
74+ container :
75+ image : almalinux:9
76+ steps :
77+ - uses : actions/checkout@v5
78+ # Download ubuntu artifact instead of rebuilding in alma.
79+ # This is OK because it's statically linked.
80+ - name : Download artifacts
81+ uses : actions/download-artifact@v4
82+ with :
83+ name : stableartifacts-ubuntu24.04
84+ path : .
85+ - name : Build RPM
86+ run : |
87+ tar -xzvf floki*.tar.gz
88+ mkdir target/release
89+ cp floki target/release/floki
90+ cargo generate-rpm -s 'release = "1.el9"'
91+ - name : Install RPM
92+ run : find floki*rpm | xargs dnf install -y floki*.rpm
93+ - name : Test installation
94+ run : floki -V
95+ - name : Archive artifacts
96+ uses : actions/upload-artifact@v4
97+ with :
98+ name : rpm
99+ path : |
100+ target/release/floki*.rpm
101+
70102 publish :
71103 name : Publish release artifact
72104 runs-on : ubuntu-latest
@@ -97,6 +129,10 @@ jobs:
97129 uses : actions/download-artifact@v5
98130 with :
99131 name : stableartifacts-macos-latest
132+ - name : Download RPM
133+ uses : actions/download-artifact@v5
134+ with :
135+ name : rpm
100136 - name : Generate release.txt
101137 run : " ./changelog.sh"
102138 - name : Release
@@ -106,6 +142,7 @@ jobs:
106142 files : |
107143 floki*.zip
108144 floki*.tar.gz
145+ floki*.rpm
109146 # # Announce the release
110147 # - run: "./announce.sh"
111148 # env:
@@ -136,6 +173,10 @@ jobs:
136173 uses : actions/download-artifact@v5
137174 with :
138175 name : stableartifacts-macos-latest
176+ - name : Download rpm
177+ uses : actions/download-artifact@v5
178+ with :
179+ name : rpm
139180 # Test generating release.txt
140181 - name : Generate release.txt
141182 run : " ./changelog.sh"
0 commit comments