-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from freedomofpress/gha
The failure with error message: `No .circleci/config.yml was found in your project. Add a configuration file to your repository or refer to [documentation](https://circleci.com/docs/2.0/configuration-reference/).` is expected. Just in case it wasn't already done, I went ahead and disabled CircleCI for this repo for future work. 🎉
- Loading branch information
Showing
4 changed files
with
76 additions
and
44 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
vanilla: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
artifact_id: ${{ steps.upload.outputs.artifact-id }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: sudo apt-get update && sudo apt-get install -y make build-essential | ||
|
||
- name: Build vanilla kernel | ||
run: make vanilla | ||
|
||
- uses: actions/upload-artifact@v4 | ||
id: upload | ||
with: | ||
name: build1 | ||
path: build | ||
if-no-files-found: error | ||
|
||
vanilla2: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
artifact_id: ${{ steps.upload.outputs.artifact-id }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: sudo apt-get update && sudo apt-get install -y make build-essential | ||
|
||
- name: Build vanilla kernel | ||
run: make vanilla | ||
|
||
- uses: actions/upload-artifact@v4 | ||
id: upload | ||
with: | ||
name: build2 | ||
path: build | ||
if-no-files-found: error | ||
|
||
reproducible: | ||
runs-on: ubuntu-latest | ||
container: debian:bookworm | ||
needs: | ||
- vanilla | ||
- vanilla2 | ||
steps: | ||
- name: Install dependencies | ||
run: | | ||
apt-get update && apt-get install --yes diffoscope-minimal python3-debian \ | ||
--no-install-recommends | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
pattern: "*" | ||
- name: diffoscope | ||
run: | | ||
find . -name '*.deb' -exec sha256sum {} \; | ||
# TODO: Ideally we'd just be able to diff the .changes files and let diffoscope find | ||
# all the individual debs, but the source packages are not identical. When they are, | ||
for deb in `find build1/ -name '*.deb' -exec basename {} \;`; do | ||
echo "Diffoscoping $deb" | ||
diffoscope build1/$deb build2/$deb | ||
done; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters