-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TODOs Fix func names Remove data folder add ci move channel to subdirectory fix ci Fix ci rustup from toolchain file Fix README fix channel directory
- Loading branch information
1 parent
325d3e2
commit 7dfcde2
Showing
59 changed files
with
220 additions
and
499 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use guix | ||
|
||
export GUILE_LOAD_PATH="$(pwd):$HOME/.config/guix/current/share/guile/site/3.0" | ||
export GUILE_LOAD_PATH="$(pwd)/guix:$HOME/.config/guix/current/share/guile/site/3.0" | ||
export RUSTUP_DIST_SERVER="https://mirrors.ustc.edu.cn/rust-static" |
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,64 @@ | ||
name: build | ||
on: | ||
push: | ||
paths-ignore: | ||
- 'README.org' | ||
- '.guix-authorizations' | ||
- '.guix-channel' | ||
pull_request: | ||
schedule: | ||
# weekly builds, making sure everything still works with guix-proper | ||
- cron: '39 3 * * 0' | ||
jobs: | ||
build: | ||
name: Build package | ||
runs-on: ubuntu-latest | ||
strategy: | ||
# building independent packages, don’t abort entire build if one fails | ||
fail-fast: false | ||
matrix: | ||
package: | ||
- rust-bin | ||
steps: | ||
- name: Guix cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/guix | ||
# use a key that (almost) never matches | ||
key: guix-cache-${{ github.sha }} | ||
restore-keys: | | ||
guix-cache- | ||
- name: Install Guix | ||
uses: PromyLOPh/guix-install-action@v1 | ||
with: | ||
channels: |- | ||
(list (channel | ||
(name 'guix) | ||
(url "https://github.com/declantsien/guix") | ||
(branch "master") | ||
(introduction | ||
(make-channel-introduction | ||
"9edb3f66fd807b096b48283debdcddccfea34bad" | ||
(openpgp-fingerprint | ||
"BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA")))) | ||
(channel | ||
(name 'nonguix) | ||
(url "https://gitlab.com/nonguix/nonguix") | ||
(branch "master") | ||
(introduction | ||
(make-channel-introduction | ||
"897c1a470da759236cc11798f4e0a5f7d4d59fbc" | ||
(openpgp-fingerprint | ||
"2A39 3FFF 68F4 EF7A 3D29 12AF 6F51 20A0 22FB B2D5"))))) | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Lint package | ||
run: | | ||
GUIX_PROFILE="/home/runner/.config/guix/current" | ||
. "$GUIX_PROFILE/etc/profile" | ||
guix lint -L ./channel ${{ matrix.package }} |& sed -nre 's#(.*):([0-9]+):([0-9]+): (.*)$#::warning file=\1,line=\2,col=\3::\4#gp' | ||
- name: Build package | ||
run: | | ||
GUIX_PROFILE="/home/runner/.config/guix/current" | ||
. "$GUIX_PROFILE/etc/profile" | ||
guix build -L ./channel ${{ matrix.package }} |
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,47 @@ | ||
name: test | ||
on: [push] | ||
jobs: | ||
build-with-channels: | ||
name: Test as Guix channel | ||
runs-on: ubuntu-latest | ||
strategy: | ||
# building independent packages, don’t abort entire build if one fails | ||
fail-fast: false | ||
steps: | ||
- name: Guix cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/guix | ||
# use a key that (almost) never matches | ||
key: guix-cache-${{ github.sha }} | ||
restore-keys: | | ||
guix-cache- | ||
# Cannot use a cache for /gnu/store, since restore fails | ||
- name: Install Guix | ||
id: install-guix | ||
uses: PromyLOPh/guix-install-action@v1 | ||
with: | ||
channels: |- | ||
(list (channel | ||
(name 'guix) | ||
(url "https://github.com/declantsien/guix") | ||
(branch "master") | ||
(introduction | ||
(make-channel-introduction | ||
"9edb3f66fd807b096b48283debdcddccfea34bad" | ||
(openpgp-fingerprint | ||
"BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA")))) | ||
(channel | ||
(name 'rustup) | ||
(url "https://github.com/declantsien/guix-rustup") | ||
(introduction | ||
(make-channel-introduction | ||
"325d3e2859d482c16da21eb07f2c6ff9c6c72a80" | ||
(openpgp-fingerprint | ||
"F695 F39E C625 E081 33B5 759F 0FC6 8703 75EF E2F5"))))) | ||
- name: Build | ||
run: guix build rust-bin | ||
- name: Build | ||
run: guix build -e '((@@ (rustup build toolchain) rustup) "1.78.0")' | ||
- name: Build | ||
run: guix build -e '((@@ (rustup build toolchain) rustup) "nightly-2024-05-13")' |
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
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,30 @@ | ||
#+TITLE: Guix Rustup | ||
#+OPTIONS: d:nil | ||
#+EXPORT_FILE_NAME: guix-rustup.texi | ||
#+TEXINFO_DIR_CATEGORY: Guix Channels | ||
#+TEXINFO_DIR_TITLE: Guix Rustup: (guix-rustup). | ||
#+TEXINFO_DIR_DESC: Rust binary toolchain channel for Guix | ||
|
||
https://forge.rust-lang.org/infra/channel-layout.html | ||
https://forge.rust-lang.org/infra/other-installation-methods.html | ||
|
||
* Overview | ||
|
||
Guix Rustup | ||
|
||
** Channel introduction | ||
In case you want to use this channel, add the following code to | ||
your ~~/.config/guix/channels.scm~, and call ~guix pull~. | ||
#+begin_src scheme | ||
(cons* | ||
(channel | ||
(name 'rustup) | ||
(url "https://github.com/declantsien/guix-rustup") | ||
(introduction | ||
(make-channel-introduction | ||
"325d3e2859d482c16da21eb07f2c6ff9c6c72a80" | ||
(openpgp-fingerprint | ||
"F695 F39E C625 E081 33B5 759F 0FC6 8703 75EF E2F5")))) | ||
%default-channels) | ||
#+end_src | ||
|
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 @@ | ||
* TODO Add Github action to automaticlly update channels |
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
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
Oops, something went wrong.