Skip to content

Update CI #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 16, 2023
Merged

Conversation

qryxip
Copy link
Member

@qryxip qryxip commented Apr 15, 2023

3年前の状態のままのGitHub Actionsをアップデートします。

@qryxip qryxip force-pushed the ja-all-enabled-update-ci branch from 2c6e344 to 4314054 Compare April 15, 2023 15:20
@qryxip qryxip force-pushed the ja-all-enabled-update-ci branch from 4314054 to 0f14ed3 Compare April 15, 2023 15:33
Comment on lines -43 to -45
# `x86_64-pc-windows-gnu` is tier 1 **for now**.
- 1.42.0-x86_64-pc-windows-msvc
- 1.42.0-x86_64-pc-windows-gnu
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

なんか動かなくなっていたので、とりあえず削除
https://github.com/rust-lang-ja/atcoder-rust-base/actions/runs/4708393204/jobs/8350803116

- toolchain: 1.42.0-x86_64-apple-darwin
os: macOS-latest
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

macos-12だとRust 1.42が動かないらしいので、とりあえずmacos-11
https://github.com/rust-lang-ja/atcoder-rust-base/actions/runs/4708393204/jobs/8350803160

@qryxip qryxip changed the title Bump runs-on Update CI Apr 15, 2023
Comment on lines 57 to +64
- name: Setup ${{ matrix.toolchain }}
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
override: true
profile: minimal
components: clippy

- name: '`rustup override set ${{ matrix.toolchain }}`'
run: rustup override set ${{ matrix.toolchain }}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RustにおけるGitHub Actionsベストプラクティス

補足すると、actions-rsがメンテされなくなったのは2020年で、2021年の春を最後に応答もしなくなった...と記憶しています。どうだったっけ?

Copy link
Collaborator

@TonalidadeHidrica TonalidadeHidrica left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me, thanks a lot!

@qryxip
Copy link
Member Author

qryxip commented Jul 16, 2023

@tatsuya6502 @statiolake

ご相談なのですが、私(@qryxip)と @TonalidadeHidrica さんと @mizar さんにアクセス権を与えて頂くことは可能でしょうか。今はこの3人ともマージボタンを押せない状態です。

@qryxip
Copy link
Member Author

qryxip commented Jul 16, 2023

@tatsuya6502 ありがとうございます。

ではマージしようと思います。

@qryxip qryxip merged commit 9afff3e into rust-lang-ja:ja-all-enabled Jul 16, 2023
@qryxip qryxip deleted the ja-all-enabled-update-ci branch July 16, 2023 05:21
@tatsuya6502
Copy link
Member

アップデートしていただき、ありがとうございます!(放置していてすみません)

ac-library-rs と同様に以下のロールを付与しました。

ユーザー ロール
@qryxip Admin
@TonalidadeHidrica Maintain
@mizar Maintain

@qryxip
Copy link
Member Author

qryxip commented Jul 16, 2023

@tatsuya6502 あとすみません別件になるのですが、私のhttps://github.com/qryxip/proposal-for-atcoder-language-update/について、AtCoderの「インストールコマンド」に名前が載る以上rust-lang-ja/atcoder-proposalのようにtransferした方が良いと思っています。

現在の「インストールコマンド」はこうなっています。Cargo.lockをリポジトリからダウンロードするようになっています
# Automatically generated by https://github.com/qryxip/proposal-for-atcoder-language-update/tree/d966938dee172bace4f213696386af6c61c443db

set -e

sudo apt-get install -y --no-install-recommends build-essential ca-certificates curl

rust_version=1.70.0

# https://forge.rust-lang.org/infra/other-installation-methods.html#standalone-installers
curl "https://static.rust-lang.org/dist/rust-$rust_version-x86_64-unknown-linux-gnu.tar.gz" -fO --output-dir /tmp
tar xvf "/tmp/rust-$rust_version-x86_64-unknown-linux-gnu.tar.gz" -C /tmp
sudo "/tmp/rust-$rust_version-x86_64-unknown-linux-gnu/install.sh"

cargo -vV
[ "$(command -v cargo)" = /usr/local/bin/cargo ]
[ "$(cargo -vV | sed -n 's/release: \(.*\)/\1/p')" = "$rust_version" ]
[ "$(cargo -vV | sed -n 's/host: \(.*\)/\1/p')" = x86_64-unknown-linux-gnu ]

mkdir ./.cargo ./src

cat > ./.cargo/config.toml << EOF
[build]
rustflags = [
    "--cfg", "atcoder",
]
EOF

cat > ./Cargo.toml << EOF
[profile.release]
lto = true # コンパイル時間が著しく長くなってしまう場合は無し

[package]
name = "main"
version = "0.0.0"
edition = "2021"
publish = false

[dependencies]
# 202301から:
ac-library-rs = "=0.1.1"
once_cell = "=1.18.0"
static_assertions = "=1.1.0"
varisat = "=0.2.2"
memoise = "=0.3.2"
argio = "=0.2.0"
bitvec = "=1.0.1"
counter = "=0.5.7"
hashbag = "=0.1.11"
pathfinding = "=4.3.0"
recur-fn = "=2.2.0"
indexing = { version = "=0.4.1", features = ["experimental_pointer_ranges"] }
amplify = { version = "=3.14.2", features = ["c_raw", "rand", "stringly_conversions"] }
amplify_derive = "=2.11.3"
amplify_num = { version = "=0.4.1", features = ["std"] }
easy-ext = "=1.0.1"
multimap = "=0.9.0"
btreemultimap = "=0.1.1"
bstr = "=1.5.0"
az = "=1.2.1"
glidesort = "=0.1.2"
tap = "=1.0.1"
omniswap = "=0.1.0"
multiversion = "=0.7.2"
# 202004から続投:
num = "=0.4.0"
num-bigint = "=0.4.3"
num-complex = "=0.4.3"
num-integer = "=0.1.45"
num-iter = "=0.1.43"
num-rational = "=0.4.1"
num-traits = "=0.2.15"
num-derive = "=0.4.0"
ndarray = "=0.15.6"
nalgebra = "=0.32.2"
alga = "=0.9.3"
libm = "=0.2.7"
rand = { version = "=0.8.5", features = ["small_rng", "min_const_gen"] }
getrandom = "=0.2.10"
rand_chacha = "=0.3.1"
rand_core = "=0.6.4"
rand_hc = "=0.3.2"
rand_pcg = "=0.3.1"
rand_distr = "=0.4.3"
petgraph = "=0.6.3"
indexmap = "=2.0.0"
regex = "=1.8.4"
lazy_static = "=1.4.0"
ordered-float = "=3.7.0"
ascii = "=1.1.0"
permutohedron = "=0.2.4"
superslice = "=1.0.0"
itertools = "=0.11.0"
itertools-num = "=0.1.3"
maplit = "=1.0.2"
either = "=1.8.1"
im-rc = "=15.1.0"
fixedbitset = "=0.4.2"
bitset-fixed = "=0.1.0"
proconio = { version = "=0.4.5", features = ["derive"] }
text_io = "=0.1.12"
rustc-hash = "=1.1.0"
smallvec = { version = "=1.10.0", features = ["const_generics", "const_new", "write", "union", "serde", "arbitrary"] }
EOF

# 1000行以上あるので、提案者のリポジトリからダウンロード
curl https://raw.githubusercontent.com/qryxip/proposal-for-atcoder-language-update/d966938dee172bace4f213696386af6c61c443db/Cargo.lock -fO

# transitive dependenciesのライセンスについては:
# - https://github.com/qryxip/proposal-for-atcoder-language-update/blob/d966938dee172bace4f213696386af6c61c443db/deny.toml
# - https://github.com/qryxip/proposal-for-atcoder-language-update/blob/d966938dee172bace4f213696386af6c61c443db/clarify.toml
# - https://github.com/qryxip/proposal-for-atcoder-language-update/actions

echo 'fn main() {}' > ./src/main.rs

cargo build -vv --release
rm target/release/main

つきましてはpublicリポジトリを制作するだけの権限を頂いた上でrust-lang-jaに移管したいのですが、可能でしょうか?

@tatsuya6502
Copy link
Member

AtCoderの「インストールコマンド」に名前が載る以上rust-lang-ja/atcoder-proposalのようにtransferした方が良いと思っています。

つきましてはpublicリポジトリを制作するだけの権限を頂いた上でrust-lang-jaに移管したいのですが、可能でしょうか?

はい、もちろん可能です。すみません。以前、Zulipでメンションいただいたと思うのですが、対応が漏れてしまいました。

@qryxip さんを rust-lang-ja org のMemberに招待しました。これでpublicリポジトリが作れるようになると思います。

@qryxip
Copy link
Member Author

qryxip commented Jul 16, 2023

@tatsuya6502

ありがとうございます! 先程proposal-for-atcoder-language-updateをtransferしました。

あとすみません、もう一つだけお願いしたいことがあります。他のAtCoder系リポジトリ("atcoder-rust-base"等)と統一するために名前を"atcoder-proposal"に変えた方がいいと思っているのですが、その為の権限がtransferした後に無くなっているようです(Gitリポジトリへのwriteはできます)。名前の変更をそちらでして頂くか、そのための権限を与えて頂けないでしょうか?

@tatsuya6502
Copy link
Member

@qryxip

その為の権限がtransferした後に無くなっているようです

qryxipさんのリポジトリーに対するロールがWriteになっていましたので、Adminに変更しました。

他のメンバーの方々も、リポジトリーの Settings → Access から自由に追加してください。

@qryxip
Copy link
Member Author

qryxip commented Jul 16, 2023

@tatsuya6502

リポジトリのリネームとアクセス権付与ができました。夜分にありがとうございました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy